Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions help.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package main

import (
"os"
"strings"
)
import "os"

func help() {
var cmd string
Expand Down Expand Up @@ -51,7 +48,7 @@ func printTopicCommandsHelp(topic *Topic) {

func printCommandHelp(command *Command) {
Printf("Usage: heroku %s\n\n", command.Usage)
Println(indent(command.buildFullHelp()))
Println(command.buildFullHelp())
}

func nonHiddenTopics(from []*Topic) []*Topic {
Expand All @@ -73,7 +70,3 @@ func nonHiddenCommands(from []*Command) []*Command {
}
return to
}

func indent(s string) string {
return " " + strings.Join(strings.Split(s, "\n"), "\n ")
}