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

Added .strict() method, to report error if unknown arguments are given #24

Merged
merged 1 commit into from
Jun 18, 2014

Conversation

chrisn
Copy link
Contributor

@chrisn chrisn commented Jun 16, 2014

This adds a new method,.strict(), which causes yargs to report an error if any unknown command line option arguments are given (i.e., any options not defined with .describe() or .demand()).

@chevcast
Copy link

Great feature. Thank you!

chevcast pushed a commit that referenced this pull request Jun 18, 2014
Added .strict() method, to report error if unknown arguments are given
@chevcast chevcast merged commit 5256fc2 into yargs:master Jun 18, 2014
@chrisn chrisn deleted the strict branch June 23, 2014 16:48
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

Successfully merging this pull request may close these issues.

2 participants