Skip to content

Commit

Permalink
Print author
Browse files Browse the repository at this point in the history
  • Loading branch information
AudriusButkevicius committed Jul 26, 2014
1 parent 27ecc97 commit e38bac8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ func NewApp() *App {
BashComplete: DefaultAppComplete,
Action: helpCommand.Action,
Compiled: compileTime(),
Author: "Author",
Email: "unknown@email",
}
}

Expand Down
6 changes: 5 additions & 1 deletion help.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ USAGE:
{{.Name}} {{ if .Flags }}[global options] {{ end }}command{{ if .Flags }} [command options]{{ end }} [arguments...]
VERSION:
{{.Version}}
{{.Version}}{{if or .Author .Email}}
AUTHOR:{{if .Author}}
{{.Author}}{{if .Email}} - <{{.Email}}>{{end}}{{else}}
{{.Email}}{{end}}{{end}}
COMMANDS:
{{range .Commands}}{{.Name}}{{with .ShortName}}, {{.}}{{end}}{{ "\t" }}{{.Usage}}
Expand Down

0 comments on commit e38bac8

Please sign in to comment.