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]

Typo fixes; clarify message

Kilian Lieret608d59889ddc
diff --git a/sweagent/run/common.py b/sweagent/run/common.py
index 533f5e6c..1544a25c 100644
--- a/sweagent/run/common.py
+++ b/sweagent/run/common.py
@@ -59,8 +59,8 @@ _SETTING_ERROR_HINTS = """
- Run `sweagent <subcommand> --help` for examples
[red][bold]Common mistakes:[/bold][/red]
-- You used dahses instead of underscores (`--num-workers` instead of `--num_workers`).
-- You forgot about part of the hierarchy (`--model.name` instead of `--aggent.model.name`).
+- You used dashes instead of underscores (wrong: `--num-workers`, correct: `--num_workers`).
+- You forgot about part of the hierarchy (wrong: `--model.name`, correct: `--agent.model.name`).
"""
@@ -157,7 +157,7 @@ class BasicCLI:
)
rich_print(
Panel.fit(
- "[red][bold]Validation error[/bold]\n" + _VALIDATION_ERROR_HELP_TEXT + "[/red]" + str(e),
+ "[red][bold]Validation error[/bold]\n" + _VALIDATION_ERROR_HELP_TEXT + "[/red]\n" + str(e),
)
)
msg = "Invalid configuration. Please check the above output."