summaryrefslogtreecommitdiff
path: root/t/helper/test-parse-options.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-09-09 17:36:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-09-11 17:54:19 (GMT)
commit2f17c78ceb0a861264f7d0335d6aadee14c765ad (patch)
tree054fd4a9ecd3143cde7cdfd107e98c532789aba2 /t/helper/test-parse-options.c
parent8ea40cc55d716e4fb2821c2ec2e55aa2a5220ba6 (diff)
downloadgit-2f17c78ceb0a861264f7d0335d6aadee14c765ad.zip
git-2f17c78ceb0a861264f7d0335d6aadee14c765ad.tar.gz
git-2f17c78ceb0a861264f7d0335d6aadee14c765ad.tar.bz2
t/helper: merge test-parse-options into test-tool
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-parse-options.c')
-rw-r--r--t/helper/test-parse-options.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/helper/test-parse-options.c b/t/helper/test-parse-options.c
index 630c76d..9cb8a0e 100644
--- a/t/helper/test-parse-options.c
+++ b/t/helper/test-parse-options.c
@@ -1,3 +1,4 @@
+#include "test-tool.h"
#include "cache.h"
#include "parse-options.h"
#include "string-list.h"
@@ -94,11 +95,11 @@ static void show(struct string_list *expect, int *status, const char *fmt, ...)
strbuf_release(&buf);
}
-int cmd_main(int argc, const char **argv)
+int cmd__parse_options(int argc, const char **argv)
{
const char *prefix = "prefix/";
const char *usage[] = {
- "test-parse-options <options>",
+ "test-tool parse-options <options>",
"",
"A helper function for the parse-options API.",
NULL