Add the ability to add a copyright
Signed-off-by: Peter Olds <polds@kyanicorp.com>
This commit is contained in:
parent
5d58d5b313
commit
2726643347
2
app.go
2
app.go
@ -43,6 +43,8 @@ type App struct {
|
|||||||
Compiled time.Time
|
Compiled time.Time
|
||||||
// List of all authors who contributed
|
// List of all authors who contributed
|
||||||
Authors []Author
|
Authors []Author
|
||||||
|
// Copyright of the binary if any
|
||||||
|
Copyright string
|
||||||
// Name of Author (Note: Use App.Authors, this is deprecated)
|
// Name of Author (Note: Use App.Authors, this is deprecated)
|
||||||
Author string
|
Author string
|
||||||
// Email of Author (Note: Use App.Authors, this is deprecated)
|
// Email of Author (Note: Use App.Authors, this is deprecated)
|
||||||
|
5
help.go
5
help.go
@ -28,7 +28,10 @@ COMMANDS:
|
|||||||
{{end}}{{if .Flags}}
|
{{end}}{{if .Flags}}
|
||||||
GLOBAL OPTIONS:
|
GLOBAL OPTIONS:
|
||||||
{{range .Flags}}{{.}}
|
{{range .Flags}}{{.}}
|
||||||
{{end}}{{end}}
|
{{end}}{{end}}{{if .Copyright }}
|
||||||
|
COPYRIGHT:
|
||||||
|
{{.Copyright}}{{end}}
|
||||||
|
|
||||||
`
|
`
|
||||||
|
|
||||||
// The text template for the command help topic.
|
// The text template for the command help topic.
|
||||||
|
Loading…
Reference in New Issue
Block a user