Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Merge remote-tracking branch 'refs/remotes/origin/swerex-integration' into swerex-integration

carlosejimenezcce16f4357e0
diff --cc sweagent/run/common.py
index ffcfd5a5,b35e77cd..8c347494
--- a/sweagent/run/common.py
+++ b/sweagent/run/common.py
@@@ -103,11 -118,11 +118,15 @@@ class BasicCLI
action="store_true",
help="Print all additional configuration options that can be set via CLI and exit",
)
- parser.add_argument("--print-config", action="store_true", help="Print the final config and exit")
+ parser.add_argument(
+ "--print_config",
+ action="store_true",
+ help="Print the final config and exit",
+ )
+
+ # >>> Step 2: Parse argparse arguments but keep all the remaining arguments.
+ # Explicitly handle --help and --print-options
+
cli_args, remaining_args = parser.parse_known_args(args)
if cli_args.help: