Parse `-` and `--` as non-option arguments
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 1 Jun 2021 15:42:56 +0000 (11:42 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 4 Jun 2021 17:59:12 +0000 (13:59 -0400)
The `-` and `--` arguments are common in many Unix command-line tools.
`--` often means "end of options" while `-` often means "read from
standard input". Depending on the application, they can have different
meanings.

This patch makes argpar_iter_next() specifically parse `-` and `--`
arguments as non-options.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I3b3f1670863992a17a7edfabdc48c921f71cd4b6


No differences found
This page took 0.022591 seconds and 4 git commands to generate.