3 #include "parse-options.h"
6 static char const * const serve_usage[] = {
7 N_("test-tool serve-v2 [<options>]"),
11 int cmd__serve_v2(int argc, const char **argv)
13 struct serve_options opts = SERVE_OPTIONS_INIT;
15 struct option options[] = {
16 OPT_BOOL(0, "stateless-rpc", &opts.stateless_rpc,
17 N_("quit after a single request/response exchange")),
18 OPT_BOOL(0, "advertise-capabilities", &opts.advertise_capabilities,
19 N_("exit immediately after advertising capabilities")),
22 const char *prefix = setup_git_directory();
24 /* ignore all unknown cmdline switches for now */
25 argc = parse_options(argc, argv, prefix, options, serve_usage,
26 PARSE_OPT_KEEP_DASHDASH |
27 PARSE_OPT_KEEP_UNKNOWN);