parse-options: allow callbacks to take no arguments at all.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
Pierre Habouzit
2007-10-16 00:32:38 +02:00
committed by Junio C Hamano
parent 7f275b9152
commit f481e22a14
2 changed files with 10 additions and 1 deletions

View File

@ -16,6 +16,7 @@ enum parse_opt_flags {
enum parse_opt_option_flags {
PARSE_OPT_OPTARG = 1,
PARSE_OPT_NOARG = 2,
};
struct option;