build: (fixes #1261) Restrict ns3 script --cxx-standard flag to 23 and 26

This commit is contained in:
Gabriel Ferreira
2025-09-17 09:52:23 +02:00
parent c4c645fe03
commit 2b0526ec9d

6
ns3
View File

@@ -184,7 +184,11 @@ def parse_args(argv):
)
parser_configure.add_argument(
"--cxx-standard", help="Compile NS-3 with the given C++ standard", type=str, default=None
"--cxx-standard",
help="Compile NS-3 with the given C++ standard",
type=str,
default=None,
choices=["23", "26"],
)
# On-Off options