Add multiline formatting to help description

This commit is contained in:
nolash 2021-09-08 17:52:16 +02:00
parent 50c31e5994
commit 7d323dd62f
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
2 changed files with 4 additions and 4 deletions

View File

@ -50,8 +50,9 @@ class ArgumentParser(argparse.ArgumentParser):
:type epilog: str
"""
def __init__(self, arg_flags=0x0f, env=os.environ, usage=None, description=None, epilog=None, *args, **kwargs):
super(ArgumentParser, self).__init__(usage=usage, description=description, epilog=epilog)
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, formatter_class=argparse.RawDescriptionHelpFormatter)
self.process_flags(arg_flags, env)
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')
if arg_flags & Flag.WALLET:
self.add_argument('-a', '--recipient', dest='recipient', type=str, help='recipient address')

View File

@ -1,6 +1,6 @@
[metadata]
name = chainlib
version = 0.0.9a6
version = 0.0.9a7
description = Generic blockchain access library and tooling
author = Louis Holbrook
author_email = dev@holbrook.no