fix(chat): register --cwd as Click option for shell completion

Replace manual ctx.args parsing with a proper @click.option using
is_flag=False and flag_value='.'. This enables tab completion for
the --cwd / -C option and directory-only path completion after it.
Also bump click dependency to >=8.3.2 to avoid the optional-value
regression in 8.3.0/8.3.1.
This commit is contained in:
Zhengshou Lai
2026-04-17 00:00:49 +08:00
parent 7c39d7c9d9
commit 686c0f736c
2 changed files with 19 additions and 49 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ version = "0.1.0"
description = "Myclaude CLI: package update and Claude Code launcher for this repo"
requires-python = ">=3.10"
dependencies = [
"click>=8.0.0",
"click>=8.3.2",
"rich>=13.0.0",
]