author | Pierre Habouzit <madcoder@debian.org> | |
Mon, 23 Jun 2008 20:55:11 +0000 (22:55 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 30 Jun 2008 21:51:13 +0000 (14:51 -0700) | ||
commit | 26141b5b60eea36f1d771312f6cae9e56dbbf760 | |
tree | a7e869a6ed39ba10b5e7d45d8ad0f18d0fee9096 | tree | snapshot |
parent | 07fe54db3cdf42500ac2e893b670fd74841afdc4 | commit | diff |
parse-opt: fake short strings for callers to believe in.
If we begin to parse -abc and that the parser knew about -a and -b, it
will fake a -c switch for the caller to deal with.
Of course in the case of -acb (supposing -c is not taking an argument) the
caller will have to be especially clever to do the same thing. We could
think about exposing an API to do so if it's really needed, but oh well...
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
If we begin to parse -abc and that the parser knew about -a and -b, it
will fake a -c switch for the caller to deal with.
Of course in the case of -acb (supposing -c is not taking an argument) the
caller will have to be especially clever to do the same thing. We could
think about exposing an API to do so if it's really needed, but oh well...
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
parse-options.c | diff | blob | history | |
parse-options.h | diff | blob | history |