3 #include "parse-options.h"
6 static const char * const git_bisect_helper_usage
[] = {
7 "git bisect--helper --next-vars",
8 "git bisect--helper --next-exit",
12 int cmd_bisect__helper(int argc
, const char **argv
, const char *prefix
)
16 struct option options
[] = {
17 OPT_BOOLEAN(0, "next-vars", &next_vars
,
18 "output next bisect step variables"),
19 OPT_BOOLEAN(0, "next-exit", &next_exit
,
20 "output bisect result and exit instuctions"),
24 argc
= parse_options(argc
, argv
, options
, git_bisect_helper_usage
, 0);
26 if ((next_vars
&& next_exit
) || (!next_vars
&& !next_exit
))
27 usage_with_options(git_bisect_helper_usage
, options
);
30 return bisect_next_vars(prefix
);
32 return bisect_next_exit(prefix
);