parse-opt: do not print errors on unknown options, return -2 intead.
authorPierre Habouzit <madcoder@debian.org>
Mon, 23 Jun 2008 20:46:36 +0000 (22:46 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Jun 2008 21:51:13 +0000 (14:51 -0700)
commit07fe54db3cdf42500ac2e893b670fd74841afdc4
tree4bd4bea396d27d86e8ff2a9251318b7b69726608
parentff43ec3e2d2f71482fe17ba9ba5f4e8074cc54ee
parse-opt: do not print errors on unknown options, return -2 intead.

This way we can catch "unknown" options more easily.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
parse-options.c