p-ranav / argparse

Argument Parser for Modern C++
MIT License
2.72k stars 250 forks source link

Stop parsing options/flags at literal `--` #354

Open llchan opened 6 months ago

llchan commented 6 months ago

Many argument parser implementations (including python argparse) treat a literal -- as a marker that breaks out of full argument parsing and collects the remaining args as positional/remaining arguments. Correct me if I'm wrong, but this library does not support that out of the box. I was able to sort of emulate it with an explicit -- remaining-argument in a mutually exclusive group with a positional-remaining argument, but that adds a bunch of extra complexity to the implementation as well as extra noise in the help/usage message.