"""The compatibility entry point follows the commands registered by Typer.""" from artemis.main import normalize_argv def test_registered_commands_and_flags_are_not_treated_as_goals(): for token in ("ui", "status", "helper", "restart", "stop", "--help", "--version", "-v"): assert normalize_argv(["artemis", token]) == ["artemis", token] def test_bare_goal_still_uses_run_command(): assert normalize_argv(["artemis", "打开设置"]) == ["artemis", "run", "打开设置"]