From 2726643347a6dfbed620bc0e87857b26a2178b53 Mon Sep 17 00:00:00 2001 From: Peter Olds Date: Tue, 9 Jun 2015 16:35:50 -0600 Subject: [PATCH 1/2] Add the ability to add a copyright Signed-off-by: Peter Olds --- app.go | 2 ++ help.go | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app.go b/app.go index 891416d..a1cf6e1 100644 --- a/app.go +++ b/app.go @@ -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) diff --git a/help.go b/help.go index 1117945..906fe7c 100644 --- a/help.go +++ b/help.go @@ -28,7 +28,10 @@ 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. From 4a11a6ba052ebb4c831741a506ad7eaa8e20e3b2 Mon Sep 17 00:00:00 2001 From: Peter Olds Date: Tue, 16 Jun 2015 15:23:29 -0600 Subject: [PATCH 2/2] Remove whitespace #238 Signed-off-by: Peter Olds --- help.go | 1 - 1 file changed, 1 deletion(-) diff --git a/help.go b/help.go index 906fe7c..8e362e8 100644 --- a/help.go +++ b/help.go @@ -31,7 +31,6 @@ GLOBAL OPTIONS: {{end}}{{end}}{{if .Copyright }} COPYRIGHT: {{.Copyright}}{{end}} - ` // The text template for the command help topic.