diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2019-10-10 09:08:37 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2019-10-10 10:07:29 +0200 |
| commit | e016deb4bbfae014ada1808abaeeb30558cac209 (patch) | |
| tree | 96ac8582ac84224efc3994bfd9e588ae662c6945 /olddefconfig.py | |
| parent | 275ddef8dfdc2b404e172d8bdbbc10e5c68b4843 (diff) | |
Convert standard_kconfig() to argparse for better feedback
Stuff like this is not the pinnacle of helpful design, and hides that
the commands actually have long help texts (that can be viewed with
pydoc):
$ ./menuconfig.py --help
[Errno 2] No such file or directory: '--help'
Fix it by converting standard_kconfig() to argparse, and add a
'description' argument to it for the command-specific help text. --help
now shows the same help text shown by pydoc, and some other error
messages are improved as well.
Also fix some copy-paste errors and outdated paths in the help texts for
the all*config commands.
Diffstat (limited to 'olddefconfig.py')
| -rwxr-xr-x | olddefconfig.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/olddefconfig.py b/olddefconfig.py index a59a7d4..a4efd9a 100755 --- a/olddefconfig.py +++ b/olddefconfig.py @@ -19,7 +19,7 @@ import kconfiglib def main(): - kconf = kconfiglib.standard_kconfig() + kconf = kconfiglib.standard_kconfig(__doc__) print(kconf.load_config()) print(kconf.write_config()) |
