X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=config%2Fconf.c;h=6b6cba52a453455e2be70e3b16cf86cc6e88ca74;hb=b5b81a87c764e579256cb533ed5ace8315e9ceff;hp=ceafacb0e98dc6103a94265583a63562922d97dc;hpb=d3bea25f5238e5abfe6d061c1e6840e354d27bf8;p=carl9170fw.git diff --git a/config/conf.c b/config/conf.c index ceafacb..6b6cba5 100644 --- a/config/conf.c +++ b/config/conf.c @@ -459,7 +459,7 @@ static struct option long_opts[] = { static void conf_usage(const char *progname) { - printf("Usage: %s [option] \n", progname); + printf("Usage: %s [-s] [option] \n", progname); printf("[option] is _one_ of the following:\n"); printf(" --listnewconfig List new options\n"); printf(" --askconfig Start a new configuration using a line-oriented program\n"); @@ -488,7 +488,11 @@ int main(int ac, char **av) tty_stdio = isatty(0) && isatty(1) && isatty(2); - while ((opt = getopt_long(ac, av, "", long_opts, NULL)) != -1) { + while ((opt = getopt_long(ac, av, "s", long_opts, NULL)) != -1) { + if (opt == 's') { + conf_set_message_callback(NULL); + continue; + } input_mode = (enum input_mode)opt; switch (opt) { case defconfig: