Skip to content

Commit e524e8c

Browse files
fix(cli): remove redundant newlines in fmt.Println for help output
1 parent 4cb06a5 commit e524e8c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

cmd/root.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -423,11 +423,13 @@ fmt.Println("Available Commands:")
423423
}
424424

425425
for title, commands := range group {
426-
fmt.Printf("\n%s\n", title)
427-
for _, c := range commands {
428-
fmt.Printf(" %-22s %s\n", c.Use, c.Short)
429-
}
426+
fmt.Printf("\n%s\n", title)
427+
for _, c := range commands {
428+
fmt.Printf(" %-22s %s\n", c.Use, c.Short)
430429
}
430+
}
431+
432+
fmt.Println()
433+
fmt.Println("Use \"stackroost [command] --help\" for more information about a command.")
431434

432-
fmt.Println("\nUse \"stackroost [command] --help\" for more information about a command.\n")
433435
}

0 commit comments

Comments
 (0)