summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2019-03-06 04:11:08 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2019-03-06 04:14:59 +0100
commitfaa4476260b60a0e3bec1c253213e50e6d4ce96e (patch)
treee58c2207122338b00267faf170eae23a28da1182
parent132e579cb8e4bdd49eb057ea81f5f8528ff80cf9 (diff)
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/)
-rwxr-xr-xsetconfig.py6
1 files changed, 4 insertions, 2 deletions
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()