author | Pierre Habouzit <madcoder@debian.org> | |
Tue, 9 Jun 2009 08:23:44 +0000 (10:23 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 10 Jun 2009 15:41:03 +0000 (08:41 -0700) | ||
commit | cb9d398c3506a6354a1c63d265a4228fcec28fda | |
tree | 155555594e0ae8f770a0ecb966529cac5add097a | tree | snapshot |
parent | 9a8531eeba5053281e14ef14e6beb019ce17f07e | commit | diff |
parse-options: add parse_options_check to validate option specs.
It only searches for now for the dreaded LASTARG_DEFAULT | OPTARG
combination, but can be extended to check for any other forbidden
combination.
Options are checked each time we call parse_options_start.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
It only searches for now for the dreaded LASTARG_DEFAULT | OPTARG
combination, but can be extended to check for any other forbidden
combination.
Options are checked each time we call parse_options_start.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
parse-options.c | diff | blob | history |