mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 20:20:25 +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
@@ -52,7 +52,7 @@ USAGE:
|
||||
minio {{.Name}} [FLAGS] PATH [PATH...]
|
||||
|
||||
FLAGS:
|
||||
{{range .Flags}}{{.}}
|
||||
{{range .VisibleFlags}}{{.}}
|
||||
{{end}}
|
||||
ENVIRONMENT VARIABLES:
|
||||
ACCESS:
|
||||
|
||||
Reference in New Issue
Block a user