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

Help doesn't short circuit #77

Closed
agmckee opened this issue Aug 17, 2017 · 1 comment
Closed

Help doesn't short circuit #77

agmckee opened this issue Aug 17, 2017 · 1 comment

Comments

@agmckee
Copy link

agmckee commented Aug 17, 2017

Probably related to #75, the --help option doesn't short circuit unless you're accessing an option via the array access interface.

@NeoVance
Copy link
Contributor

As stated in #75 the options don't have their values set until the argument tokens are parsed. The parse function is not run until the array access is used for the first time.

Because of this, validation of the arguments will not occur until you access the options through the array accessor, or you manually call the parse function.

@agmckee agmckee closed this as completed Aug 2, 2021
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