summaryrefslogtreecommitdiff
path: root/test-parse-options.c
diff options
context:
space:
mode:
authorPierre Habouzit <madcoder@debian.org>2008-03-02 10:35:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-03-02 22:07:47 (GMT)
commit580d5bffdea56dfae1e745dbda94f326bb161274 (patch)
treed5a51ee13a14c7944f196395aa2f2d9c302625ef /test-parse-options.c
parentff962a3f1900966d008d6f9eaf32095c42322b9d (diff)
downloadgit-580d5bffdea56dfae1e745dbda94f326bb161274.zip
git-580d5bffdea56dfae1e745dbda94f326bb161274.tar.gz
git-580d5bffdea56dfae1e745dbda94f326bb161274.tar.bz2
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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test-parse-options.c b/test-parse-options.c
index eed8a02..73360d7 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;