summaryrefslogtreecommitdiff
path: root/allnoconfig.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2019-10-10 09:08:37 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2019-10-10 10:07:29 +0200
commite016deb4bbfae014ada1808abaeeb30558cac209 (patch)
tree96ac8582ac84224efc3994bfd9e588ae662c6945 /allnoconfig.py
parent275ddef8dfdc2b404e172d8bdbbc10e5c68b4843 (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 'allnoconfig.py')
-rwxr-xr-xallnoconfig.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/allnoconfig.py b/allnoconfig.py
index e162ccb..1a763f9 100755
--- a/allnoconfig.py
+++ b/allnoconfig.py
@@ -11,16 +11,16 @@ in the KCONFIG_CONFIG environment variable.
Usage for the Linux kernel:
- $ make [ARCH=<arch>] scriptconfig SCRIPT=Kconfiglib/examples/allmodconfig.py
-
-See the examples/allnoconfig_walk.py example script for another way to
-implement this script.
+ $ make [ARCH=<arch>] scriptconfig SCRIPT=Kconfiglib/allnoconfig.py
"""
+
+# See examples/allnoconfig_walk.py for another way to implement this script.
+
import kconfiglib
def main():
- kconf = kconfiglib.standard_kconfig()
+ kconf = kconfiglib.standard_kconfig(__doc__)
# Avoid warnings that would otherwise get printed by Kconfiglib for the
# following: