argh icon indicating copy to clipboard operation
argh copied to clipboard

Ability to stop parsing flags when -- is passed in

Open PurpleMyst opened this issue 5 months ago • 0 comments

Is your feature request related to a problem?

I'd like to be able to stop parsing flags, so I'd be able to do stuff like my-cmd foo bar -- --baz and they'd all be passed as positional arguments.

Describe the solution you'd like

As I've said, "--" passed as an argument should mean to not parse any more non-positional arguments.

Describe alternatives you've considered

There's no alternative solution that I've found within the current argh framework.

Additional context

This is canonical from GNU/POSIX getopt.

PurpleMyst avatar Aug 02 '25 19:08 PurpleMyst