argparse icon indicating copy to clipboard operation
argparse copied to clipboard

Make it possible to treat non options as unknown arguments

Open Falcosc opened this issue 4 years ago • 5 comments

Falcosc avatar Mar 13 '21 11:03 Falcosc

[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.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

cofyc-bot avatar Mar 13 '21 11:03 cofyc-bot

/assign @cofyc

Falcosc avatar Mar 13 '21 11:03 Falcosc

can you describe your use case?

cofyc avatar Mar 14 '21 15:03 cofyc

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.

Falcosc avatar Mar 14 '21 15:03 Falcosc

@Falcosc: PR needs rebase.

This bot is powered by Prow and modified for my personal use.

cofyc-bot avatar Dec 14 '21 21:12 cofyc-bot