@cryptotaxi247 / kubo / commits / 80d743541

commands/cli: Fixed spacing error

Matt Bell committed Nov 12, 2014 at 02:35 UTC 80d743541eb0e921ef6fd1f99fad2ad61ee4d514
1 file changed +4 -1
commands/cli/helptext.go
+4 -1
@@ -312,7 +312,10 @@ func subcommandText(cmd *cmds.Command, rootName string, path []string) []string
312 i := 0
313 for name, sub := range cmd.Subcommands {
314 usage := usageText(sub)
315 - lines[i] = fmt.Sprintf("%v%v %v - %v", prefix, name, usage, sub.Description)
315 + if len(usage) > 0 {
316 + usage = " " + usage
317 + }
318 + lines[i] = fmt.Sprintf("%v%v%v - %v", prefix, name, usage, sub.Description)
319 lines[i] = indentString(lines[i], " ")
320 i++
321 }