From faa4476260b60a0e3bec1c253213e50e6d4ce96e Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Wed, 6 Mar 2019 04:11:08 +0100 Subject: setconfig: Fix help text format Need to use RawDescriptionHelpFormatter to preserve newlines in the description. Also fix a typo in the help text (s/assignments/assignment/) --- setconfig.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'setconfig.py') diff --git a/setconfig.py b/setconfig.py index 54f166b..60ee9d0 100755 --- a/setconfig.py +++ b/setconfig.py @@ -10,7 +10,9 @@ import kconfiglib def main(): - parser = argparse.ArgumentParser(description=""" + parser = argparse.ArgumentParser( + formatter_class=argparse.RawDescriptionHelpFormatter, + description=""" Simple utility for setting configuration values from the command line. Sample usage: @@ -49,7 +51,7 @@ can be passed in the KCONFIG_CONFIG environment variable. "assignments", metavar="ASSIGNMENT", nargs="*", - help="A 'NAME=value' assignments") + help="A 'NAME=value' assignment") args = parser.parse_args() -- cgit v1.2.3