Commit fc8655cb authored by Robin Obůrka's avatar Robin Obůrka

argparser: Rewrite argparser to more readable form

parent ca010ad8
...@@ -5,7 +5,14 @@ def get_arg_parser(): ...@@ -5,7 +5,14 @@ def get_arg_parser():
""" Creates own arguments parser and return it as an object. """ Creates own arguments parser and return it as an object.
""" """
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()
parser.add_argument('--resource', nargs=1, action='append', required=True, parser.add_argument('--resource',
help='resource format: sockname,[connect/bind],sock_type,ip_address,port') nargs=1,
parser.add_argument('--disable-ipv6', action='store_true') action='append',
required=True,
help='resource format: sockname,[connect/bind],sock_type,ip_address,port'
)
parser.add_argument('--disable-ipv6',
action='store_true',
help='Disable IPv6 mode of ZMQ sockets'
)
return parser return parser
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment