From e016deb4bbfae014ada1808abaeeb30558cac209 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Thu, 10 Oct 2019 09:08:37 +0200 Subject: 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. --- guiconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guiconfig.py') diff --git a/guiconfig.py b/guiconfig.py index 050789a..20ecfa1 100755 --- a/guiconfig.py +++ b/guiconfig.py @@ -95,7 +95,7 @@ an item will jump to it. Item values can be toggled directly within the dialog.\ def _main(): - menuconfig(standard_kconfig()) + menuconfig(standard_kconfig(__doc__)) # Global variables used below: -- cgit v1.2.3