-
Notifications
You must be signed in to change notification settings - Fork 33
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
Lazy parsing #53
Comments
Sorry, no, that isn't possible. Can you explain more about what you mean? Parsing of the command line arguments must be performed in the order in which they appear on the command line to be able to distinguish between options, option arguments, and positional arguments. For example |
i have such case:
i want all these args to be parsed lazily, so for example if |
You can make |
That said, this is an interesting thought: theoretically it would be possible to add a mode to the parser (or perhaps per-delegate) where it validates delegates lazily. |
Hi!
I want to parse my args lazily so when i access arg via delegate, parser should parse only this one exact arg. Currently parser run force() method on first delegate access, so all args are being read. Is it possible to disable this behavior and parse 1 arg per delegate access?
The text was updated successfully, but these errors were encountered: