summaryrefslogtreecommitdiff
path: root/test-parse-options.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-03-08 21:29:59 -0800
committerJunio C Hamano <gitster@pobox.com>2008-03-08 21:29:59 -0800
commit1cbcefb107776ce2da374697bb4f6e2bd22ff73f (patch)
tree1d1bcd19b1433a8c18220e083414be93881657ca /test-parse-options.c
parent175f5595511b047a320e5c6163c642ac1fc34681 (diff)
parent580d5bffdea56dfae1e745dbda94f326bb161274 (diff)
downloadgit-1cbcefb107776ce2da374697bb4f6e2bd22ff73f.tar.gz
Merge branch 'ph/parseopt'
* ph/parseopt: parse-options: new option type to treat an option-like parameter as an argument. parse-opt: bring PARSE_OPT_HIDDEN and NONEG to git-rev-parse --parseopt
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 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;