]> git.ipfire.org Git - thirdparty/git.git/blobdiff - test-parse-options.c
parseopt: add PARSE_OPT_NODASH
[thirdparty/git.git] / test-parse-options.c
index d46eac21b11f8e10f29105dc6bc7262496d33110..e0669dcb41d1d779f274e1ff785352e284953b14 100644 (file)
@@ -54,6 +54,8 @@ int main(int argc, const char **argv)
                OPT_ARGUMENT("quux", "means --quux"),
                OPT_NUMBER_CALLBACK(&integer, "set integer to NUM",
                        number_callback),
+               { OPTION_BOOLEAN, '+', NULL, &boolean, NULL, "same as -b",
+                 PARSE_OPT_NOARG | PARSE_OPT_NONEG | PARSE_OPT_NODASH },
                OPT_GROUP("Standard options"),
                OPT__ABBREV(&abbrev),
                OPT__VERBOSE(&verbose),