Merge pull request #238 from polds/copyright

Add the ability to add a copyright
This commit is contained in:
Jesse Szwedko
2015-06-16 19:39:24 -07:00
2 changed files with 5 additions and 1 deletions

2
app.go
View File

@@ -43,6 +43,8 @@ type App struct {
Compiled time.Time
// List of all authors who contributed
Authors []Author
// Copyright of the binary if any
Copyright string
// Name of Author (Note: Use App.Authors, this is deprecated)
Author string
// Email of Author (Note: Use App.Authors, this is deprecated)

View File

@@ -28,7 +28,9 @@ COMMANDS:
{{end}}{{if .Flags}}
GLOBAL OPTIONS:
{{range .Flags}}{{.}}
{{end}}{{end}}
{{end}}{{end}}{{if .Copyright }}
COPYRIGHT:
{{.Copyright}}{{end}}
`
// The text template for the command help topic.