Merge branch 'jc/parseopt-command-modes'
commit366b80bf0a84b607115bd4ffcd8e5ebfc7338442
authorJunio C Hamano <gitster@pobox.com>
Wed, 4 Sep 2013 19:37:52 +0000 (4 12:37 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Sep 2013 19:37:52 +0000 (4 12:37 -0700)
tree8dace2d8aa41e2eb4f584529e1f3588d83b9bb3e
parent5fb0e0868c25d4be66ead46992c393ed5f91c2d1
parente6b722db099f435f21ce72b18f0d61dc3c778f1f
Merge branch 'jc/parseopt-command-modes'

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()
parse-options.h