Use named struct fields
This commit is contained in:
parent
7beac44ab1
commit
b95607c608
2
app.go
2
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
|
// 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) {
|
func (a *App) Run(arguments []string) (err error) {
|
||||||
if a.Author != "" || a.Email != "" {
|
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 {
|
if HelpPrinter == nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user