From: Pierre Habouzit Date: Tue, 8 Jul 2008 10:34:08 +0000 (+0200) Subject: parse-options: add PARSE_OPT_LASTARG_DEFAULT flag X-Git-Tag: v1.6.0-rc0~66^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/1cc6985ca7dd3aaab0617ec0fd00d4eb0b424465?ds=inline;hp=1cc6985ca7dd3aaab0617ec0fd00d4eb0b424465 parse-options: add PARSE_OPT_LASTARG_DEFAULT flag If you set this for a given option, and the optoin appears without an argument on the command line, then the `defval' is used as its argument. Note that this flag is meaningless in presence of OPTARG or NOARG flags. (in the current implementation it will be ignored, but don't rely on it). Signed-off-by: Pierre Habouzit Signed-off-by: Junio C Hamano ---