|
After calling I have not found a way looking at e.g. How can I determine if help or version default commands will be invoked parsing? |
Answered by
baronfel
Jul 14, 2025
Replies: 1 comment 5 replies
|
There's not a one-shot way to do so, but if you investigate |
5 replies
Answer selected by
ptr727
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's not a one-shot way to do so, but if you investigate
ParseResult.CommandResult.Children, if help or version were called one of the children will be anOptionResult, whoseOptionResult.Option.Namewill be--help,--version, etc.