From: Masahiro Yamada Date: Sat, 13 Mar 2021 19:48:27 +0000 (+0900) Subject: kconfig: add help messages for --help (-h) and --silent (-s) X-Git-Tag: accepted/tizen/unified/20230118.172025~7333^2~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ee4c6f00dcee1bffcb06ffa274251c1467d3efaa;p=platform%2Fkernel%2Flinux-rpi.git kconfig: add help messages for --help (-h) and --silent (-s) Add missing options and make the help message more readable. Signed-off-by: Masahiro Yamada --- diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index aac76ac..9ebc1ac 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kconfig/conf.c @@ -496,9 +496,13 @@ static struct option long_opts[] = { static void conf_usage(const char *progname) { - - printf("Usage: %s [-s] [option] \n", progname); - printf("[option] is _one_ of the following:\n"); + printf("Usage: %s [options] \n", progname); + printf("\n"); + printf("Generic options:\n"); + printf(" -h, --help Print this message and exit.\n"); + printf(" -s, --silent Do not print log.\n"); + printf("\n"); + printf("Mode options:\n"); printf(" --listnewconfig List new options\n"); printf(" --helpnewconfig List new options and help text\n"); printf(" --oldaskconfig Start a new configuration using a line-oriented program\n");