linting fixes

This commit is contained in:
Lea Anthony
2019-04-10 08:38:46 +10:00
parent 6a36d75774
commit eeb6fa4677
12 changed files with 50 additions and 55 deletions

View File

@@ -195,10 +195,7 @@ func (c *Command) Action(callback Action) *Command {
// PrintHelp - Output the help text for this command
func (c *Command) PrintHelp() {
c.log.PrintBanner()
versionString := c.AppVersion
if versionString != "" {
versionString = " " + versionString
}
commandTitle := c.CommandPath
if c.Shortdescription != "" {
commandTitle += " - " + c.Shortdescription