diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2021-02-21 22:03:16 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2021-02-24 15:12:06 +0900 |
commit | a2af62c3bd8fec5a2771be88c95783ddfcc57631 (patch) | |
tree | 4c454bb77f58c15a3ebb875250f6a326197f1194 /tools/perf/scripts/python/netdev-times.py | |
parent | 102a1a72d0c80ffceae1e2a5d371699463c93733 (diff) |
kconfig: fix 'invalid option' for help option
scripts/kconfig/conf supports -? option to show the help message.
This is not wired up to Makefile, so nobody would notice this, but
it also shows 'invalid option' message.
$ ./scripts/kconfig/conf -?
./scripts/kconfig/conf: invalid option -- '?'
Usage: ./scripts/kconfig/conf [-s] [option] <kconfig-file>
[option] is _one_ of the following:
--listnewconfig List new options
--helpnewconfig List new options and help text
--oldaskconfig Start a new configuration using a line-oriented program
...
The reason is the '?' is missing in the short option list passed to
getopt_long().
While I fixed this issue, I also changed the option '?' to 'h'.
I prefer -h (or --help, if a long option is also desired).
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions