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
@@ -53,7 +53,7 @@ USAGE:
|
||||
minio {{.Name}} [FLAGS]
|
||||
|
||||
FLAGS:
|
||||
{{range .Flags}}{{.}}
|
||||
{{range .VisibleFlags}}{{.}}
|
||||
{{end}}
|
||||
EXIT STATUS:
|
||||
0 - You are already running the most recent version.
|
||||
|
||||
Reference in New Issue
Block a user