mirror of
https://github.com/minio/minio.git
synced 2024-12-25 06:35:56 -05:00
main/cli: Don't print hidden flags/commands in help template. (#3748)
Always use .VisibleFlags and .VisibleCommands to not print Hidden flags as expected from help template.
This commit is contained in:
parent
602dac8773
commit
13c3b9cbcb
@ -53,13 +53,13 @@ DESCRIPTION:
|
|||||||
{{.Description}}
|
{{.Description}}
|
||||||
|
|
||||||
USAGE:
|
USAGE:
|
||||||
minio {{if .Flags}}[flags] {{end}}command{{if .Flags}}{{end}} [arguments...]
|
minio {{if .VisibleFlags}}[flags] {{end}}command{{if .VisibleFlags}}{{end}} [arguments...]
|
||||||
|
|
||||||
COMMANDS:
|
COMMANDS:
|
||||||
{{range .Commands}}{{join .Names ", "}}{{ "\t" }}{{.Usage}}
|
{{range .VisibleCommands}}{{join .Names ", "}}{{ "\t" }}{{.Usage}}
|
||||||
{{end}}{{if .Flags}}
|
{{end}}{{if .VisibleFlags}}
|
||||||
FLAGS:
|
FLAGS:
|
||||||
{{range .Flags}}{{.}}
|
{{range .VisibleFlags}}{{.}}
|
||||||
{{end}}{{end}}
|
{{end}}{{end}}
|
||||||
VERSION:
|
VERSION:
|
||||||
` + Version +
|
` + Version +
|
||||||
|
@ -52,7 +52,7 @@ USAGE:
|
|||||||
minio {{.Name}} [FLAGS] PATH [PATH...]
|
minio {{.Name}} [FLAGS] PATH [PATH...]
|
||||||
|
|
||||||
FLAGS:
|
FLAGS:
|
||||||
{{range .Flags}}{{.}}
|
{{range .VisibleFlags}}{{.}}
|
||||||
{{end}}
|
{{end}}
|
||||||
ENVIRONMENT VARIABLES:
|
ENVIRONMENT VARIABLES:
|
||||||
ACCESS:
|
ACCESS:
|
||||||
|
@ -53,7 +53,7 @@ USAGE:
|
|||||||
minio {{.Name}} [FLAGS]
|
minio {{.Name}} [FLAGS]
|
||||||
|
|
||||||
FLAGS:
|
FLAGS:
|
||||||
{{range .Flags}}{{.}}
|
{{range .VisibleFlags}}{{.}}
|
||||||
{{end}}
|
{{end}}
|
||||||
EXIT STATUS:
|
EXIT STATUS:
|
||||||
0 - You are already running the most recent version.
|
0 - You are already running the most recent version.
|
||||||
|
@ -38,7 +38,7 @@ USAGE:
|
|||||||
minio {{.Name}}
|
minio {{.Name}}
|
||||||
|
|
||||||
FLAGS:
|
FLAGS:
|
||||||
{{range .Flags}}{{.}}
|
{{range .VisibleFlags}}{{.}}
|
||||||
{{end}}
|
{{end}}
|
||||||
VERSION:
|
VERSION:
|
||||||
` + Version + `{{"\n"}}`,
|
` + Version + `{{"\n"}}`,
|
||||||
|
Loading…
Reference in New Issue
Block a user