From b6e341aec62db7c066769fce94a566231425252d Mon Sep 17 00:00:00 2001 From: Aolin Date: Fri, 18 Nov 2022 11:48:32 +0800 Subject: [PATCH 1/3] remove arg -B in tiup --- tiup/tiup-overview.md | 2 +- tiup/tiup-reference.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tiup/tiup-overview.md b/tiup/tiup-overview.md index 1f3fc746d03b1..fe39c04e2eb31 100644 --- a/tiup/tiup-overview.md +++ b/tiup/tiup-overview.md @@ -70,7 +70,7 @@ Components Manifest: use "tiup list" to fetch the latest components manifest Flags: - -B, --binary [:version] Print binary path of a specific version of a component [:version] + --binary [:version] Print binary path of a specific version of a 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 diff --git a/tiup/tiup-reference.md b/tiup/tiup-reference.md index a95ae72fdcd07..536e1f4b14f6d 100644 --- a/tiup/tiup-reference.md +++ b/tiup/tiup-reference.md @@ -20,7 +20,7 @@ You can use the `--help` command to get the information of a specific command. T ## Options -### -B, --binary +### --binary - If you enable this option, the specified binary file path is printed. From b76e86416f6c2b2b6e7c74da4ef5c3cadd5f68c0 Mon Sep 17 00:00:00 2001 From: Aolin Date: Fri, 18 Nov 2022 11:54:54 +0800 Subject: [PATCH 2/3] Apply suggestions from code review --- tiup/tiup-overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiup/tiup-overview.md b/tiup/tiup-overview.md index fe39c04e2eb31..9a3d09b9ac46f 100644 --- a/tiup/tiup-overview.md +++ b/tiup/tiup-overview.md @@ -70,7 +70,7 @@ Components Manifest: use "tiup list" to fetch the latest components manifest Flags: - --binary [:version] Print binary path of a specific version of a component [:version] + --binary [:version] Print binary path of a specific version of a 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 From d4961869998096c7060df7db1a4e0e59e81fd0d7 Mon Sep 17 00:00:00 2001 From: Aolin Date: Fri, 18 Nov 2022 11:58:01 +0800 Subject: [PATCH 3/3] remove -B --- tiup/tiup-reference.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tiup/tiup-reference.md b/tiup/tiup-reference.md index 536e1f4b14f6d..ecf60c95a0b88 100644 --- a/tiup/tiup-reference.md +++ b/tiup/tiup-reference.md @@ -24,8 +24,8 @@ You can use the `--help` command to get the information of a specific command. T - If you enable this option, the specified binary file path is printed. - - Executing `tiup -B/--binary ` will have the path of the latest stable installed `` component printed. If `` is not installed, an error is returned. - - Executing `tiup -B/--binary :` will have the path of the installed `` component's `` printed. If this `` is not printed, an error is returned. + - Executing `tiup --binary ` will have the path of the latest stable installed `` component printed. If `` is not installed, an error is returned. + - Executing `tiup --binary :` will have the path of the installed `` component's `` printed. If this `` is not printed, an error is returned. - Data type: `BOOLEAN` - This option is disabled by default and its default value is `false`. To enable this option, you can add this option to the command, and pass the `true` value or do not pass any value.