Skip to content

Commit

Permalink
build: Do not enable argparse exception on Python < 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabrielcarvfer committed Oct 24, 2024
1 parent b4960b8 commit 13030b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ns3
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 13030b3

Please sign in to comment.