build: accept 'ns3 -h' in addition to 'ns3 --help'

Fix #699
This commit is contained in:
Gabriel Ferreira
2022-07-08 19:30:58 +00:00
parent 9ff4236d5a
commit 2247130fb1

2
ns3
View File

@@ -77,7 +77,7 @@ def add_argument_to_subparsers(parsers: list,
def parse_args(argv):
parser = argparse.ArgumentParser(description="ns-3 wrapper for the CMake build system", add_help=False)
parser.add_argument('--help',
parser.add_argument('-h', '--help',
help="Print a summary of available commands",
action="store_true", default=None, dest="help")
# parser.add_argument('--docset',