chainlib

Generic blockchain access library and tooling
Log | Files | Refs | README | LICENSE

commit 7d323dd62f5e390f8b603b5ad8f3fdb1cb8176bd
parent 50c31e5994155b1c319a85d4c22465814bdde28d
Author: nolash <dev@holbrook.no>
Date:   Wed,  8 Sep 2021 17:52:16 +0200

Add multiline formatting to help description

Diffstat:
Mchainlib/cli/arg.py | 6+++---
Msetup.cfg | 2+-
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/chainlib/cli/arg.py b/chainlib/cli/arg.py @@ -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') - diff --git a/setup.cfg b/setup.cfg @@ -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