Merge pull request #10083 from f321x/format_cli_help
cli: set formatter_class for command descriptions
This commit is contained in:
@@ -502,7 +502,7 @@ class Commands(Logger):
|
||||
{"address": "tb1q4s8z6g5jqzllkgt8a4har94wl8tg0k9m8kv5zd", "value_sats": 990000}
|
||||
]
|
||||
}
|
||||
:arg:json:jsontx:Transaction in json
|
||||
arg:json:jsontx:Transaction in json
|
||||
"""
|
||||
keypairs = {}
|
||||
inputs = [] # type: List[PartialTxInput]
|
||||
@@ -2337,7 +2337,8 @@ def get_parser():
|
||||
cmdname,
|
||||
description=cmd.description,
|
||||
help=cmd.short_description,
|
||||
epilog="Run 'electrum -h to see the list of global options",
|
||||
formatter_class=argparse.RawDescriptionHelpFormatter,
|
||||
epilog="Run 'electrum -h' to see the list of global options",
|
||||
)
|
||||
for optname, default in zip(cmd.options, cmd.defaults):
|
||||
if optname in ['wallet_path', 'wallet', 'plugin']:
|
||||
|
||||
Reference in New Issue
Block a user