Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove arg -B in tiup (#12048) #12054

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tiup/tiup-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Components Manifest:
use "tiup list" to fetch the latest components manifest

Flags:
-B, --binary <component>[:version] Print binary path of a specific version of a component <component>[:version]
--binary <component>[:version] Print binary path of a specific version of a component <component>[:version]
and the latest version installed will be selected if no version specified
--binpath string Specify the binary path of component instance
-h, --help help for tiup
Expand Down
6 changes: 3 additions & 3 deletions tiup/tiup-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ tiup [flags] <component> [args...] # 运行组件

## 选项

### -B, --binary
### --binary

打印指定组件的二进制文件路径:

- 执行 `tiup -B/--binary <component>` 将打印已安装的 `<component>` 组件的最新稳定版路径,若 `<component>` 组件未安装,则报错
- 执行 `tiup -B/--binary <component>:<version>` 将打印已经安装的 `<component>` 组件的 `<version>` 版本所在的路径,若该版本未安装,则报错
- 执行 `tiup --binary <component>` 将打印已安装的 `<component>` 组件的最新稳定版路径,若 `<component>` 组件未安装,则报错
- 执行 `tiup --binary <component>:<version>` 将打印已经安装的 `<component>` 组件的 `<version>` 版本所在的路径,若该版本未安装,则报错
- 数据类型:`BOOLEAN`
- 该选项默认关闭,默认值为 `false`。在命令中添加该选项,并传入 `true` 值或不传值,均可开启此功能。

Expand Down