argparse
argparse copied to clipboard
Make it possible to treat non options as unknown arguments
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: Falcosc
To complete the pull request process, please assign cofyc
You can assign the PR to them by writing /assign @cofyc in a comment when ready.
The full list of commands accepted by this bot can be found here.
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
/assign @cofyc
can you describe your use case?
Projects without non option arguments do need this:
APP.exe -a 123 -b 345 invalidStuff
Or just app.exe invalid stuff
These 2 examples do currently not print help
And it needs to be a flag because projects which are using non option arguments, like a file path or an action name would like to support non option arguments. I thought the default value should be support of non option arguments, so the flag need to be manually set if you want to treat non option arguments as invalid input.