-h should be a global flag for --help
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 CLI 入口点和全局 flag 处理开始,以现有的 --help 行为作为参考。测试 fastly -h 和 fastly --help;当短 flag 显示相同的全局帮助文本且不与子命令冲突时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Is your feature request related to a problem? Please describe.
It's common and conventional for CLI tools to accept -h as a shortcut for invoking --help globally.
But we don't currently support it:
GLOBAL FLAGS
--help Show context-sensitive help.
-d, --accept-defaults Accept default options for all interactive prompts
apart from Yes/No confirmations
-y, --auto-yes Answer yes automatically to all Yes/No confirmations.
This may suppress security warnings
--debug-mode Print API request and response details (NOTE:
can disrupt the normal CLI flow output formatting)
--enable-sso Enable Single-Sign On (SSO) for current profile
execution (see also: 'fastly sso')
-i, --non-interactive Do not prompt for user input - suitable for CI
processes. Equivalent to --accept-defaults and
--auto-yes
-o, --profile=PROFILE Switch account profile for single command execution
(see also: 'fastly profile switch')
-q, --quiet Silence all output except direct command output.
This won't prevent interactive prompts (see:
--accept-defaults, --auto-yes, --non-interactive)
-t, --token=TOKEN Fastly API token (or via FASTLY_API_TOKEN)
-v, --verbose Verbose logging
Perhaps there are -h conflicts with subcommands?
Describe the solution you'd like
I'd like fastly -h to work globally as a shortcut for showing help text.
Describe alternatives you've considered
n/a
Additional context
n/a
- 主要语言
- Go
- 星标
- 164
- 派生
- 81
- 平均合并
- 1 天 3 小时
- 30 天内合并 PR
- 23
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
fastly/cli 的其他 Issue
-
bug feature request
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 25/100
维护者通常 1 天内回复
-
feature request
难度 3/5 1-2 天 新手友好度 52/100
维护者通常 1 天内回复
-
feature request
难度 4/5 3-5 天 新手友好度 38/100
fastly/cli#1790 · 2 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
feature request
难度 4/5 3-5 天 新手友好度 48/100
维护者通常 1 天内回复
相似的 Issue
-
Aspect/API Severity/Major Type/Bug
难度 2/5 1-3 小时 新手友好度 66/100
wso2/api-platform#3899 ·
维护者通常 1 天内回复
-
bug needs-acceptance wg/agentic-context
难度 2/5 1-3 小时 新手友好度 78/100
vllm-project/semantic-router#5418 ·
维护者通常 1 天内回复
-
feature suggestion
难度 2/5 1-3 小时 新手友好度 88/100
openvibely/openvibely#1526 ·
维护者通常 1 天内回复
-
docs good first issue
难度 2/5 1-3 小时 新手友好度 85/100
Usenova-Labs/usenova-backend#36 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复