build: Do not enable argparse exception on Python < 3.9

This commit is contained in:
Gabriel Ferreira
2024-10-24 19:51:00 +02:00
parent b4960b8680
commit 13030b331c

5
ns3
View File

@@ -90,8 +90,11 @@ def add_argument_to_subparsers(
def parse_args(argv):
py39args = {"exit_on_error": False}
if sys.version_info < (3, 9):
py39args = {}
parser = argparse.ArgumentParser(
description="ns-3 wrapper for the CMake build system", add_help=False, exit_on_error=False
description="ns-3 wrapper for the CMake build system", add_help=False, **py39args
)
sub_parser = parser.add_subparsers()