History

kconfig: add help messages for --help (-h) and --silent (-s)

Add missing options and make the help message more readable.

Masahiro Yamada committed 5 years ago

Commit ee4c6f01 parent bafc4791 file · +7 −3Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/kconfig/conf.c+7−3
@@ -496,9 +496,13 @@ static struct option long_opts[] = { · 495 unmodified lines
496496
497497 static void conf_usage(const char *progname)
498498 {
499−
500− printf("Usage: %s [-s] [option] <kconfig-file>\n", progname);
501− printf("[option] is _one_ of the following:\n");
499+ printf("Usage: %s [options] <kconfig-file>\n", progname);
500+ printf("\n");
501+ printf("Generic options:\n");
502+ printf(" -h, --help Print this message and exit.\n");
503+ printf(" -s, --silent Do not print log.\n");
504+ printf("\n");
505+ printf("Mode options:\n");
502506 printf(" --listnewconfig List new options\n");
503507 printf(" --helpnewconfig List new options and help text\n");
504508 printf(" --oldaskconfig Start a new configuration using a line-oriented program\n");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t