Add multiline formatting to help description
This commit is contained in:
parent
50c31e5994
commit
7d323dd62f
@ -50,8 +50,9 @@ class ArgumentParser(argparse.ArgumentParser):
|
|||||||
:type epilog: str
|
:type epilog: str
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, arg_flags=0x0f, env=os.environ, usage=None, description=None, epilog=None, *args, **kwargs):
|
def __init__(self, arg_flags=0x0f, env=os.environ, usage=None, description=None, epilog=None):
|
||||||
super(ArgumentParser, self).__init__(usage=usage, description=description, epilog=epilog)
|
super(ArgumentParser, self).__init__(usage=usage, description=description, epilog=epilog, formatter_class=argparse.RawDescriptionHelpFormatter)
|
||||||
|
|
||||||
self.process_flags(arg_flags, env)
|
self.process_flags(arg_flags, env)
|
||||||
self.pos_args = []
|
self.pos_args = []
|
||||||
|
|
||||||
@ -165,4 +166,3 @@ class ArgumentParser(argparse.ArgumentParser):
|
|||||||
self.add_argument('-e', '--exectuable-address', dest='executable_address', type=str, help='contract address')
|
self.add_argument('-e', '--exectuable-address', dest='executable_address', type=str, help='contract address')
|
||||||
if arg_flags & Flag.WALLET:
|
if arg_flags & Flag.WALLET:
|
||||||
self.add_argument('-a', '--recipient', dest='recipient', type=str, help='recipient address')
|
self.add_argument('-a', '--recipient', dest='recipient', type=str, help='recipient address')
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = chainlib
|
name = chainlib
|
||||||
version = 0.0.9a6
|
version = 0.0.9a7
|
||||||
description = Generic blockchain access library and tooling
|
description = Generic blockchain access library and tooling
|
||||||
author = Louis Holbrook
|
author = Louis Holbrook
|
||||||
author_email = dev@holbrook.no
|
author_email = dev@holbrook.no
|
||||||
|
Loading…
Reference in New Issue
Block a user