summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/dpdk_setup_ports.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/dpdk_setup_ports.py b/scripts/dpdk_setup_ports.py
index 5bbbdb28..538d0700 100755
--- a/scripts/dpdk_setup_ports.py
+++ b/scripts/dpdk_setup_ports.py
@@ -659,9 +659,12 @@ Other network devices
def parse_parent_cfg (parent_cfg):
parent_parser = argparse.ArgumentParser(add_help = False)
+ parent_parser.add_argument('-?', '-h', '--help', dest = 'help', action = 'store_true')
parent_parser.add_argument('--cfg', default='')
parent_parser.add_argument('--dump-interfaces', nargs='*', default=None)
- args, unkown = parent_parser.parse_known_args(shlex.split(parent_cfg))
+ args, _ = parent_parser.parse_known_args(shlex.split(parent_cfg))
+ if args.help:
+ sys.exit(0)
return (args.cfg, args.dump_interfaces)
def process_options ():