style: simplify --agent help text, normalize comment spelling

Co-authored-by: mnriem <15701806+mnriem@users.noreply.github.com>
Agent-Logs-Url: https://github.com/github/spec-kit/sessions/930d8c4d-ce42-41fb-a40f-561fb1468e81
This commit is contained in:
copilot-swe-agent[bot]
2026-03-20 21:54:56 +00:00
committed by GitHub
parent c2227a7ffd
commit d6016ab9db
2 changed files with 2 additions and 2 deletions

View File

@@ -1715,7 +1715,7 @@ def _handle_agent_skills_migration(console: Console, agent_key: str) -> None:
def init( def init(
project_name: str = typer.Argument(None, help="Name for your new project directory (optional if using --here, or use '.' for current directory)"), project_name: str = typer.Argument(None, help="Name for your new project directory (optional if using --here, or use '.' for current directory)"),
ai_assistant: str = typer.Option(None, "--ai", help=AI_ASSISTANT_HELP), ai_assistant: str = typer.Option(None, "--ai", help=AI_ASSISTANT_HELP),
agent: str = typer.Option(None, "--agent", help="AI agent to use (pack-based flow — resolves through the agent pack system and records installed files for tracked teardown). Accepts the same agent IDs as --ai."), agent: str = typer.Option(None, "--agent", help="AI agent to use (enables file tracking for clean teardown when switching agents). Accepts the same agent IDs as --ai."),
ai_commands_dir: str = typer.Option(None, "--ai-commands-dir", help="Directory for agent command files (required with --ai generic, e.g. .myagent/commands/)"), ai_commands_dir: str = typer.Option(None, "--ai-commands-dir", help="Directory for agent command files (required with --ai generic, e.g. .myagent/commands/)"),
script_type: str = typer.Option(None, "--script", help="Script type to use: sh or ps"), script_type: str = typer.Option(None, "--script", help="Script type to use: sh or ps"),
ignore_agent_tools: bool = typer.Option(False, "--ignore-agent-tools", help="Skip checks for AI agent tools like Claude Code"), ignore_agent_tools: bool = typer.Option(False, "--ignore-agent-tools", help="Skip checks for AI agent tools like Claude Code"),

View File

@@ -851,7 +851,7 @@ class TestInitAgentFlag:
folder = config.get("folder", "").rstrip("/") folder = config.get("folder", "").rstrip("/")
subdir = config.get("commands_subdir", "commands") subdir = config.get("commands_subdir", "commands")
expected_dir = f"{folder}/{subdir}" if folder else "" expected_dir = f"{folder}/{subdir}" if folder else ""
# Normalise path separators # Normalize path separators
expected_dir = expected_dir.lstrip("/") expected_dir = expected_dir.lstrip("/")
assert resolved.manifest.commands_dir == expected_dir, ( assert resolved.manifest.commands_dir == expected_dir, (