mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-30 08:07:59 +00:00
fdtgrep: Correct ordering of flags
Two of the flags are out of order, so fix this. Also adjust the ordering of one flag in the main switch() Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
233a61373b
commit
9dab5bd3f8
1 changed files with 7 additions and 7 deletions
|
@ -953,6 +953,8 @@ static const struct option usage_long_opts[] = {
|
||||||
{"include-mem", no_argument, NULL, 'm'},
|
{"include-mem", no_argument, NULL, 'm'},
|
||||||
{"include-node", a_argument, NULL, 'n'},
|
{"include-node", a_argument, NULL, 'n'},
|
||||||
{"exclude-node", a_argument, NULL, 'N'},
|
{"exclude-node", a_argument, NULL, 'N'},
|
||||||
|
{"out", a_argument, NULL, 'o'},
|
||||||
|
{"out-format", a_argument, NULL, 'O'},
|
||||||
{"include-prop", a_argument, NULL, 'p'},
|
{"include-prop", a_argument, NULL, 'p'},
|
||||||
{"exclude-prop", a_argument, NULL, 'P'},
|
{"exclude-prop", a_argument, NULL, 'P'},
|
||||||
{"remove-strings", no_argument, NULL, 'r'},
|
{"remove-strings", no_argument, NULL, 'r'},
|
||||||
|
@ -961,8 +963,6 @@ static const struct option usage_long_opts[] = {
|
||||||
{"skip-supernodes", no_argument, NULL, 'S'},
|
{"skip-supernodes", no_argument, NULL, 'S'},
|
||||||
{"show-stringtab", no_argument, NULL, 't'},
|
{"show-stringtab", no_argument, NULL, 't'},
|
||||||
{"show-aliases", no_argument, NULL, 'T'},
|
{"show-aliases", no_argument, NULL, 'T'},
|
||||||
{"out", a_argument, NULL, 'o'},
|
|
||||||
{"out-format", a_argument, NULL, 'O'},
|
|
||||||
{"invert-match", no_argument, NULL, 'v'},
|
{"invert-match", no_argument, NULL, 'v'},
|
||||||
USAGE_COMMON_LONG_OPTS,
|
USAGE_COMMON_LONG_OPTS,
|
||||||
};
|
};
|
||||||
|
@ -984,6 +984,8 @@ static const char * const usage_opts_help[] = {
|
||||||
"Include mem_rsvmap section in binary output",
|
"Include mem_rsvmap section in binary output",
|
||||||
"Node to include in grep",
|
"Node to include in grep",
|
||||||
"Node to exclude in grep",
|
"Node to exclude in grep",
|
||||||
|
"-o <output file>",
|
||||||
|
"-O <output format>",
|
||||||
"Property to include in grep",
|
"Property to include in grep",
|
||||||
"Property to exclude in grep",
|
"Property to exclude in grep",
|
||||||
"Remove unused strings from string table",
|
"Remove unused strings from string table",
|
||||||
|
@ -992,8 +994,6 @@ static const char * const usage_opts_help[] = {
|
||||||
"Don't include supernodes of matching nodes",
|
"Don't include supernodes of matching nodes",
|
||||||
"Include string table in binary output",
|
"Include string table in binary output",
|
||||||
"Include matching aliases in output",
|
"Include matching aliases in output",
|
||||||
"-o <output file>",
|
|
||||||
"-O <output format>",
|
|
||||||
"Invert the sense of matching (select non-matching lines)",
|
"Invert the sense of matching (select non-matching lines)",
|
||||||
USAGE_COMMON_OPTS_HELP
|
USAGE_COMMON_OPTS_HELP
|
||||||
};
|
};
|
||||||
|
@ -1125,6 +1125,9 @@ static void scan_args(struct display_info *disp, int argc, char *argv[])
|
||||||
case 'H':
|
case 'H':
|
||||||
disp->header = 1;
|
disp->header = 1;
|
||||||
break;
|
break;
|
||||||
|
case 'I':
|
||||||
|
disp->show_dts_version = 1;
|
||||||
|
break;
|
||||||
case 'l':
|
case 'l':
|
||||||
disp->region_list = 1;
|
disp->region_list = 1;
|
||||||
break;
|
break;
|
||||||
|
@ -1180,9 +1183,6 @@ static void scan_args(struct display_info *disp, int argc, char *argv[])
|
||||||
case 'v':
|
case 'v':
|
||||||
disp->invert = 1;
|
disp->invert = 1;
|
||||||
break;
|
break;
|
||||||
case 'I':
|
|
||||||
disp->show_dts_version = 1;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type && value_add(disp, &disp->value_head, type, inc,
|
if (type && value_add(disp, &disp->value_head, type, inc,
|
||||||
|
|
Loading…
Add table
Reference in a new issue