parseopt: add PARSE_OPT_NODASH
commit51a9949eda7421a2dd9cb45b2110d6571ba09bbd
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Thu, 7 May 2009 19:45:42 +0000 (7 21:45 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 9 May 2009 07:29:50 +0000 (9 00:29 -0700)
tree319237eb500050e73ddd9b6e5dee585a41dc4b69
parente0319ff5ed2b7927302389181449dcd029a26622
parseopt: add PARSE_OPT_NODASH

Add support for options that don't start with a dash.  Initially, they
don't accept arguments and can only be short options, i.e. consist of a
single character.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
parse-options.c
parse-options.h
t/t0040-parse-options.sh
test-parse-options.c