use Name as default to HelpName

This commit is contained in:
Alexander Frolov 2020-11-03 13:22:01 +03:00 committed by GitHub
parent 09ac54c2f9
commit e40b83a394
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
app.go
View File

@ -140,7 +140,7 @@ func (a *App) Setup() {
}
if a.HelpName == "" {
a.HelpName = filepath.Base(os.Args[0])
a.HelpName = a.Name
}
if a.Usage == "" {