Skip to content

Commit

Permalink
remove arg -B in tiup (#12048) (#12049)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Nov 18, 2022
1 parent 4db67a8 commit 1658681
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit 1658681

Please sign in to comment.