From 8fa0fe64d8418093c7f28cdc70a7f409956aeb04 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Mon, 29 Mar 2021 10:52:02 -0700 Subject: [PATCH] add -v to helptext. minor formatting --- jc/cli.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/jc/cli.py b/jc/cli.py index 4c116e68..c7f95006 100644 --- a/jc/cli.py +++ b/jc/cli.py @@ -297,8 +297,8 @@ def helptext(): """Return the help text with the list of parsers""" parsers_string = parsers_text(indent=12, pad=17) - helptext_string = f''' - jc converts the output of many commands to JSON for easier parsing in scripts. + helptext_string = f'''\ + jc converts the output of many commands and file-types to JSON Usage: COMMAND | jc PARSER [OPTIONS] @@ -316,6 +316,7 @@ def helptext(): -p pretty print output -q quiet - suppress parser warnings -r raw JSON output + -v version info Example: ls -al | jc --ls -p @@ -329,10 +330,9 @@ def helptext(): def versiontext(): """Return the version text""" - versiontext_string = f''' + versiontext_string = f'''\ jc version {info.version} - © 2019-2021 Kelly Brazil - ''' + © 2019-2021 Kelly Brazil''' return textwrap.dedent(versiontext_string)