mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 04:30:26 +03: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:
+1
-1
@@ -38,7 +38,7 @@ USAGE:
|
||||
minio {{.Name}}
|
||||
|
||||
FLAGS:
|
||||
{{range .Flags}}{{.}}
|
||||
{{range .VisibleFlags}}{{.}}
|
||||
{{end}}
|
||||
VERSION:
|
||||
` + Version + `{{"\n"}}`,
|
||||
|
||||
Reference in New Issue
Block a user