getopt: Add support for '--' to stop option parsing
In some cases when commands have optional arguments it is necessary
to explicitly stop option parsing after the last nonpositonal option.
Add support for '--' to accomplish this as done in getopt(3) aswell.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent a435c13 commit 70460e9723acb8547f688930a41f0a941fd8796b
@Sascha Hauer Sascha Hauer authored on 21 Jul 2016
Showing 1 changed file
View
lib/getopt.c