fix(cli): remove invalid --cwd flag config and make upgrade a proper alias

- Remove is_flag=False + flag_value="." combination which has no effect
  on click option with is_flag=False (default)
- Create dedicated click.Command for upgrade instead of raw alias
  assignment, so help shows correct command name
This commit is contained in:
Zhengshou Lai
2026-05-27 11:23:13 +08:00
parent 480ee311f2
commit af80ec1de0
2 changed files with 8 additions and 5 deletions
-2
View File
@@ -37,8 +37,6 @@ def _resolve_chat_cwd() -> Path:
@click.option(
"--cwd",
"-C",
is_flag=False,
flag_value=".",
default=None,
type=click.Path(dir_okay=True, file_okay=False),
help="Use specified path as working directory (default: workspace/).",