diff options
author | Pierre Habouzit <madcoder@debian.org> | 2008-03-02 11:35:56 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-03-02 14:07:47 -0800 |
commit | 580d5bffdea56dfae1e745dbda94f326bb161274 (patch) | |
tree | d5a51ee13a14c7944f196395aa2f2d9c302625ef /test-parse-options.c | |
parent | ff962a3f1900966d008d6f9eaf32095c42322b9d (diff) | |
download | git-580d5bffdea56dfae1e745dbda94f326bb161274.tar.gz |
parse-options: new option type to treat an option-like parameter as an argument.
This is meant to be used to keep --not and --all during revision parsing.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'test-parse-options.c')
-rw-r--r-- | test-parse-options.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test-parse-options.c b/test-parse-options.c index eed8a02c65..73360d7512 100644 --- a/test-parse-options.c +++ b/test-parse-options.c @@ -20,6 +20,8 @@ int main(int argc, const char **argv) OPT_STRING(0, "string2", &string, "str", "get another string"), OPT_STRING(0, "st", &string, "st", "get another string (pervert ordering)"), OPT_STRING('o', NULL, &string, "str", "get another string"), + OPT_GROUP("magic arguments"), + OPT_ARGUMENT("quux", "means --quux"), OPT_END(), }; int i; |