#465·kong

命令摘要中的 `[flags]` 与 `passthrough` 位置不正确

作者: dbohdan创建于 2024年10月28日更新于 2026年2月21日

当使用 `passthrough` 时,类似于 `Usage: foo <command> [<args> ...] [flags]` 的摘要是不准确的。标志必须放在 `passthrough` 参数之前,因此摘要应该是 `Usage: foo [flags] <command> [<args> ...]`。

内容来源: alecthomas/kong