help cleanup

This commit is contained in:
David Dollar
2013-08-21 15:01:54 -04:00
parent 4a3f622c51
commit 1c08447721
2 changed files with 9 additions and 8 deletions
+6 -4
View File
@@ -9,7 +9,8 @@ import (
var cmdHelp = &Command{
Usage: "help [topic]",
Long: `Help shows usage for a command or other topic.`,
Short: "Show this help",
Long: `Help shows usage for a command.`,
}
func init() {
@@ -37,9 +38,10 @@ func runHelp(cmd *Command, args []string) {
}
var usageTemplate = template.Must(template.New("usage").Parse(`
Usage: forego [command] [options] [arguments]
{{range .Commands}}{{if .Runnable}}{{if .List}}
{{.Name | printf "%-8s"}} {{.Short}}{{end}}{{end}}{{end}}
Usage: foreman <command> [<args>]
Available commands:{{range .Commands}}{{if .Runnable}}{{if .List}}
{{.Name | printf "%-8s"}} {{.Short}}{{end}}{{end}}{{end}}
Run 'forego help [command]' for details.`[1:]))
+3 -4
View File
@@ -11,15 +11,14 @@ var flagEnv string
var cmdStart = &Command{
Run: runStart,
Usage: "start [-f procfile] [-e env] [-c concurrency]",
Short: "start the app",
Short: "Start the application",
Long: `
Start the application specified by a Procfile (defaults to ./Procfile)
Examples:
forego start
forego start -f Procfile.test -e .env.test
forego start
forego start -f Procfile.test -e .env.test
`,
}