mirror of
https://github.com/minio/minio.git
synced 2025-11-09 21:49:46 -05:00
cli: Make sure to add --help flag for subcommands. (#3773)
--help is now back and prints properly with command help template.
This commit is contained in:
@@ -46,7 +46,7 @@ var updateCmd = cli.Command{
|
||||
{{.HelpName}} - {{.Usage}}
|
||||
|
||||
USAGE:
|
||||
{{.HelpName}} {{if .VisibleFlags}}[FLAGS]{{end}}
|
||||
{{.HelpName}}{{if .VisibleFlags}} [FLAGS]{{end}}
|
||||
{{if .VisibleFlags}}
|
||||
FLAGS:
|
||||
{{range .VisibleFlags}}{{.}}
|
||||
@@ -56,8 +56,10 @@ EXIT STATUS:
|
||||
1 - New update is available.
|
||||
-1 - Error in getting update information.
|
||||
|
||||
VERSION:
|
||||
` + Version + `{{"\n"}}`,
|
||||
EXAMPLES:
|
||||
1. Check if there is a new update available:
|
||||
$ {{.HelpName}}
|
||||
`,
|
||||
}
|
||||
|
||||
const releaseTagTimeLayout = "2006-01-02T15-04-05Z"
|
||||
|
||||
Reference in New Issue
Block a user