From 2247130fb18c6435c3537e08168ce678d3a2d6cd Mon Sep 17 00:00:00 2001 From: Gabriel Ferreira Date: Fri, 8 Jul 2022 19:30:58 +0000 Subject: [PATCH] build: accept 'ns3 -h' in addition to 'ns3 --help' Fix #699 --- ns3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ns3 b/ns3 index 92f69d1f8..d1f6b7efd 100755 --- a/ns3 +++ b/ns3 @@ -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',