parse-options: add parse_options_check to validate option specs.
commitcb9d398c3506a6354a1c63d265a4228fcec28fda
authorPierre Habouzit <madcoder@debian.org>
Tue, 9 Jun 2009 08:23:44 +0000 (9 10:23 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 10 Jun 2009 15:41:03 +0000 (10 08:41 -0700)
tree155555594e0ae8f770a0ecb966529cac5add097a
parent9a8531eeba5053281e14ef14e6beb019ce17f07e
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>
parse-options.c