You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there is an error parsing the args, injecting ParseResult will result in error during injection. Is there actually anything that can be done about errors during injection?
Happy to raise an issue and maybe contributing, but I wanted to discuss first because I'm not sure this will be considered a bug (although I think this feature can't be used like this) or if there are any good solutions. Some options are:
Parsing in lenient mode, but AFAIK that means either mutating the CommandLine or creating a new one (not sure how expensive that is or will depend on users customizations)
Providing a new result class that encapsulates the ParseResult and any errors thrown.
Providing an Optional<ParseResult> (but using an Optional seems weird).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
If there is an error parsing the
args
, injectingParseResult
will result in error during injection. Is there actually anything that can be done about errors during injection?Happy to raise an issue and maybe contributing, but I wanted to discuss first because I'm not sure this will be considered a bug (although I think this feature can't be used like this) or if there are any good solutions. Some options are:
CommandLine
or creating a new one (not sure how expensive that is or will depend on users customizations)ParseResult
and any errors thrown.Optional<ParseResult>
(but using anOptional
seems weird).Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions