parse-options: don't emit "ambiguous option" for aliases
[gitweb.git] / t / helper / test-parse-options.c
index 2232b2f79ecd7524b5763716fbca5a87bed06f5d..af82db06ac59c77c181351c76fff81ebe92f38c6 100644 (file)
@@ -149,6 +149,9 @@ int cmd__parse_options(int argc, const char **argv)
                OPT_CALLBACK(0, "expect", &expect, "string",
                             "expected output in the variable dump",
                             collect_expect),
+               OPT_GROUP("Alias"),
+               OPT_STRING('A', "alias-source", &string, "string", "get a string"),
+               OPT_ALIAS('Z', "alias-target", "alias-source"),
                OPT_END(),
        };
        int i;