From b95607c608f1bd870702373791c944032e5338b0 Mon Sep 17 00:00:00 2001 From: jszwedko Date: Tue, 10 Mar 2015 08:12:44 -0700 Subject: [PATCH] Use named struct fields --- app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.go b/app.go index 8701320..3d4ed12 100644 --- a/app.go +++ b/app.go @@ -79,7 +79,7 @@ func NewApp() *App { // Entry point to the cli app. Parses the arguments slice and routes to the proper flag/args combination func (a *App) Run(arguments []string) (err error) { if a.Author != "" || a.Email != "" { - a.Authors = append(a.Authors, Author{a.Author, a.Email}) + a.Authors = append(a.Authors, Author{Name: a.Author, Email: a.Email}) } if HelpPrinter == nil {