OPT_HELP = 1,
OPT_ALL,
OPT_FORCE,
+ OPT_LIST_OPTIONS,
};
static struct mi_writer *writer;
{"all", 'a', POPT_ARG_NONE, 0, OPT_ALL, 0, 0},
{"input-path", 'i', POPT_ARG_STRING, &opt_input_path, 0, 0, 0},
{"force", 'f', POPT_ARG_NONE, 0, OPT_FORCE, 0, 0},
+ {"list-options", 0, POPT_ARG_NONE, NULL, OPT_LIST_OPTIONS, NULL, NULL},
{0, 0, 0, 0, 0, 0, 0}
};
case OPT_ALL:
opt_load_all = 1;
break;
+ case OPT_LIST_OPTIONS:
+ list_cmd_options(stdout, load_opts);
+ goto end;
case OPT_FORCE:
opt_force = 1;
break;
OPT_HELP = 1,
OPT_ALL,
OPT_FORCE,
+ OPT_LIST_OPTIONS,
};
static struct poptOption save_opts[] = {
{"all", 'a', POPT_ARG_NONE, 0, OPT_ALL, 0, 0},
{"output-path", 'o', POPT_ARG_STRING, &opt_output_path, 0, 0, 0},
{"force", 'f', POPT_ARG_NONE, 0, OPT_FORCE, 0, 0},
+ {"list-options", 0, POPT_ARG_NONE, NULL, OPT_LIST_OPTIONS, NULL, NULL},
{0, 0, 0, 0, 0, 0, 0}
};
case OPT_FORCE:
opt_force = 1;
break;
+ case OPT_LIST_OPTIONS:
+ list_cmd_options(stdout, save_opts);
+ goto end;
default:
usage(stderr);
ret = CMD_UNDEFINED;