summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2021-03-14 04:48:27 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2021-03-25 13:35:12 +0900
commitee4c6f00dcee1bffcb06ffa274251c1467d3efaa (patch)
tree68ea6c9c742f052d27add68e9a51759e1a42ae9a /scripts
parentbafc479132160a5fa66efa1748c995e699655803 (diff)
downloadlinux-ee4c6f00dcee1bffcb06ffa274251c1467d3efaa.tar.gz
linux-ee4c6f00dcee1bffcb06ffa274251c1467d3efaa.tar.bz2
linux-ee4c6f00dcee1bffcb06ffa274251c1467d3efaa.zip
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 <masahiroy@kernel.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/conf.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
index aac76acfd100..9ebc1acaf1ae 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] <kconfig-file>\n", progname);
- printf("[option] is _one_ of the following:\n");
+ printf("Usage: %s [options] <kconfig-file>\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");