mirror of
https://github.com/minio/minio.git
synced 2025-11-09 21:49:46 -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:
@@ -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