]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
kconfig: document the positional argument in the help message
authorMasahiro Yamada <masahiroy@kernel.org>
Thu, 24 Oct 2024 11:25:45 +0000 (20:25 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Tue, 5 Nov 2024 23:46:35 +0000 (08:46 +0900)
The positional argument specifies the top-level Kconfig. Include this
information in the help message.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/conf.c

index 3d7d454c54da3c01df7a4a0b488b114be132e7b1..8abe570419552fa8d59038ac98725dfd413a4c46 100644 (file)
@@ -628,7 +628,7 @@ static const struct option long_opts[] = {
 
 static void conf_usage(const char *progname)
 {
-       printf("Usage: %s [options] <kconfig-file>\n", progname);
+       printf("Usage: %s [options] kconfig_file\n", progname);
        printf("\n");
        printf("Generic options:\n");
        printf("  -h, --help              Print this message and exit.\n");
@@ -653,6 +653,9 @@ static void conf_usage(const char *progname)
        printf("  --mod2yesconfig         Change answers from mod to yes if possible\n");
        printf("  --mod2noconfig          Change answers from mod to no if possible\n");
        printf("  (If none of the above is given, --oldaskconfig is the default)\n");
+       printf("\n");
+       printf("Arguments:\n");
+       printf("  kconfig_file            Top-level Kconfig file.\n");
 }
 
 int main(int ac, char **av)