Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ejs doesn't throw error on unknown command-line option #690

@cwrichardson

Description

@cwrichardson

Try any arbitrary command and it just works:

npx ejs file.ejs -o file.html --foo

This is only my second time using EJS, so perhaps this is intended behavior, but I believe most tools would emit a help warning. If it is intended behavior, then the actual use case that caused me to find this should perhaps be addressed in some other way. I was changing the delimiter and using

npx ejs file.ejs -m'|'

It took me two days to figure out that I needed a space after -m :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions