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

Eleventy should fail when using unknown options #66

Closed
kleinfreund opened this issue Feb 20, 2018 · 1 comment
Closed

Eleventy should fail when using unknown options #66

kleinfreund opened this issue Feb 20, 2018 · 1 comment
Assignees
Milestone

Comments

@kleinfreund
Copy link
Contributor

kleinfreund commented Feb 20, 2018

Running eleventy always tries to process the current directory. This might not be intended. Users might just confirm their Eleventy version after upgrading (with the currend working directory often being the home directory after upgrading things) or have a typo in an argument. For example:

eleventy -v

I think, Eleventy should fail when any unknown option is provided and give an explanation.

Just an example:

phil@MONDBASIS in ~/Downloads
👻 jekyll -x
jekyll 3.7.2 | Error:  Whoops, we can't understand your command.
jekyll 3.7.2 | Error:  invalid option: -x
jekyll 3.7.2 | Error:  Run your command again with the --help switch to see available options.
@zachleat
Copy link
Member

Good idea! I like it 👍

Fail fast

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

No branches or pull requests

2 participants