parseopt: add OPT_NUMBER_CALLBACK
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Thu, 7 May 2009 19:45:08 +0000 (21:45 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 9 May 2009 07:29:47 +0000 (00:29 -0700)
commite0319ff5ed2b7927302389181449dcd029a26622
tree5185c782d22d57ce359f0493bc26aa5ac5215c77
parent2f4b97f91071f5060bf2da482cf8b0d70486d808
parseopt: add OPT_NUMBER_CALLBACK

Add a way to recognize numerical options.  The number is passed to
a callback function as a string.

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