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]
convert common args to snake case
carlosejimenez227c96051295
diff --git a/sweagent/run/common.py b/sweagent/run/common.pyindex 418a7aa3..ffcfd5a5 100644--- a/sweagent/run/common.py+++ b/sweagent/run/common.py@@ -55,7 +55,7 @@ one after the other and reporting the failures for each of them._SETTING_ERROR_HINTS = """[red][bold]Hints:[/bold][/red]-- Run `sweagent <subcommand> --print-options` for a complete overview of all available options.+- Run `sweagent <subcommand> --print_options` for a complete overview of all available options.- Run `sweagent <subcommand> --help` for examples[red][bold]Common mistakes:[/bold][/red]@@ -94,16 +94,20 @@ class BasicCLI:)if self.default_settings:parser.add_argument(- "--no-config-file",+ "--no_config_file",action="store_true",help="Do not load default config file when no config file is provided",)parser.add_argument(- "--print-options",+ "--print_options",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",+ )cli_args, remaining_args = parser.parse_known_args(args)if cli_args.help:@@ -136,7 +140,7 @@ class BasicCLI:config_files.append(config_file)msg = (f"Loading default config from {config_file}, because no other "- "config file is specified. Specify --no-config-file to disable this."+ "config file is specified. Specify --no_config_file to disable this.")self.logger.info(msg)txt = config_file.read_text()diff --git a/sweagent/run/run_single.py b/sweagent/run/run_single.pyindex e2651d59..c640ff15 100644--- a/sweagent/run/run_single.py+++ b/sweagent/run/run_single.py@@ -5,9 +5,9 @@-h --help Show help text and exit--config CONFIG Load additional config files. Use this option multiple times to loadmultiple files, e.g., --config config1.yaml --config config2.yaml- --no-config-file Do not load default config file when no config file is provided- --print-options Print all additional configuration options that can be set via CLI and exit- [cyan][bold]--... Many more options[/cyan][/bold] (run `sweagent run --print-options` for a complete overview)+ --no_config_file Do not load default config file when no config file is provided+ --print_options Print all additional configuration options that can be set via CLI and exit+ [cyan][bold]--... Many more options[/cyan][/bold] (run `sweagent run --print_options` for a complete overview)[cyan][bold]=== EXAMPLES ===[/bold][/cyan]@@ -30,7 +30,7 @@ Here's an example that uses [bold][cyan]modal[/bold][/cyan] instead of docker an[cyan][bold]=== MORE ===[/bold][/cyan]-To find out all command line options, run [green]sweagent run --print-options[/green]!+To find out all command line options, run [green]sweagent run --print_options[/green]!Want to run over more than one issue? Check out the [bold][cyan]batch mode[/bold][/cyan]: [green]sweagnet run-batch --help[/green]!"""diff --git a/tests/test_run_single.py b/tests/test_run_single.pyindex 80a93a7f..17ba5ac7 100644--- a/tests/test_run_single.py+++ b/tests/test_run_single.py@@ -81,7 +81,6 @@ def test_run_ies_repo_ps_matrix(raise ValueError(repo)args = ["--agent.model.name=instant_empty_submit",- "--print_config","--output_dir",str(tmpdir),*ps_args,