Merge branch 'jc/parseopt-command-modes'
authorJunio C Hamano <gitster@pobox.com>
Wed, 4 Sep 2013 19:37:52 +0000 (12:37 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Sep 2013 19:37:52 +0000 (12:37 -0700)
Many commands use --dashed-option as a operation mode selector
(e.g. "git tag --delete") that the user can use at most one
(e.g. "git tag --delete --verify" is a nonsense) and you cannot
negate (e.g. "git tag --no-delete" is a nonsense). Make it easier
for users of parse_options() to enforce these restrictions.

* jc/parseopt-command-modes:
tag: use OPT_CMDMODE
parse-options: add OPT_CMDMODE()

1  2 
parse-options.h
diff --cc parse-options.h
Simple merge