Skip to content

Commit a49401b

Browse files
committed
kconfig: document the positional argument in the help message
The positional argument specifies the top-level Kconfig. Include this information in the help message. Signed-off-by: Masahiro Yamada <[email protected]>
1 parent d6a91e2 commit a49401b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/kconfig/conf.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ static const struct option long_opts[] = {
628628

629629
static void conf_usage(const char *progname)
630630
{
631-
printf("Usage: %s [options] <kconfig-file>\n", progname);
631+
printf("Usage: %s [options] kconfig_file\n", progname);
632632
printf("\n");
633633
printf("Generic options:\n");
634634
printf(" -h, --help Print this message and exit.\n");
@@ -653,6 +653,9 @@ static void conf_usage(const char *progname)
653653
printf(" --mod2yesconfig Change answers from mod to yes if possible\n");
654654
printf(" --mod2noconfig Change answers from mod to no if possible\n");
655655
printf(" (If none of the above is given, --oldaskconfig is the default)\n");
656+
printf("\n");
657+
printf("Arguments:\n");
658+
printf(" kconfig_file Top-level Kconfig file.\n");
656659
}
657660

658661
int main(int ac, char **av)

0 commit comments

Comments
 (0)