Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cwrichardson opened this issue Jul 26, 2022 · 1 comment
Open

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

cwrichardson opened this issue Jul 26, 2022 · 1 comment

Comments

@cwrichardson
Copy link

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 :(

@shimonbrandsdorfer
Copy link

ejs uses jake for argument parsing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants