mirror of
https://github.com/rancher/os.git
synced 2025-09-01 23:04:41 +00:00
Update vendor
This commit is contained in:
37
vendor/github.com/docker/libcompose/cli/command/help.go
generated
vendored
37
vendor/github.com/docker/libcompose/cli/command/help.go
generated
vendored
@@ -1,37 +0,0 @@
|
|||||||
package command
|
|
||||||
|
|
||||||
import (
|
|
||||||
"github.com/codegangsta/cli"
|
|
||||||
"os"
|
|
||||||
"path"
|
|
||||||
)
|
|
||||||
|
|
||||||
func init() {
|
|
||||||
cli.AppHelpTemplate = `Usage: {{.Name}} {{if .Flags}}[OPTIONS] {{end}}COMMAND [arg...]
|
|
||||||
|
|
||||||
{{.Usage}}
|
|
||||||
|
|
||||||
Version: {{.Version}}{{if or .Author .Email}}
|
|
||||||
|
|
||||||
Author:{{if .Author}}
|
|
||||||
{{.Author}}{{if .Email}} - <{{.Email}}>{{end}}{{else}}
|
|
||||||
{{.Email}}{{end}}{{end}}
|
|
||||||
{{if .Flags}}
|
|
||||||
Options:
|
|
||||||
{{range .Flags}}{{.}}
|
|
||||||
{{end}}{{end}}
|
|
||||||
Commands:
|
|
||||||
{{range .Commands}}{{.Name}}{{with .ShortName}}, {{.}}{{end}}{{ "\t" }}{{.Usage}}
|
|
||||||
{{end}}
|
|
||||||
Run '{{.Name}} COMMAND --help' for more information on a command.
|
|
||||||
`
|
|
||||||
cli.CommandHelpTemplate = `Usage: ` + path.Base(os.Args[0]) + ` {{.Name}}{{if .Flags}} [OPTIONS]
|
|
||||||
|
|
||||||
{{.Usage}}
|
|
||||||
|
|
||||||
Options:
|
|
||||||
{{range .Flags}}{{.}}
|
|
||||||
{{end}}{{end}}
|
|
||||||
`
|
|
||||||
|
|
||||||
}
|
|
Reference in New Issue
Block a user