Commit 9a93ade1 authored by Robin Obůrka's avatar Robin Obůrka

argparser: Remove unnecessary nargs

parent 8b7e4d88
......@@ -13,7 +13,6 @@ def get_arg_parser():
"""
parser = argparse.ArgumentParser()
parser.add_argument('--resource',
nargs=1,
action='append',
required=True,
help='resource format: sockname,[connect/bind],sock_type,ip_address,port'
......
......@@ -212,8 +212,7 @@ class SN:
def parse_resources(self):
## Currently I don't know why but resources is array of arrays
self.resources = [ Resource.from_string(res[0]) for res in self.args.resource ]
self.resources = [ Resource.from_string(res) for res in self.args.resource ]
def build_sockets(self):
......
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