diff options
| author | Joe Richey joerichey@google.com <joerichey@google.com> | 2017-10-12 17:59:45 -0700 |
|---|---|---|
| committer | Joseph Richey <joerichey94@gmail.com> | 2017-10-19 02:22:25 -0700 |
| commit | b4299090c3e503ba0c49a6086b1a46c218ca45f4 (patch) | |
| tree | 889adbf3da9616a5c6eaa783291e5f94c01955a2 /cmd/output.go | |
| parent | 921f1c977c4e0704f61e3a7c092d3a4317ab278c (diff) | |
Command, Context, command line splitting setup
Diffstat (limited to 'cmd/output.go')
| -rw-r--r-- | cmd/output.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/output.go b/cmd/output.go index 024705d..c3a79a4 100644 --- a/cmd/output.go +++ b/cmd/output.go @@ -51,7 +51,7 @@ var ( // HelpFlag writes help to Stdout HelpFlag = &BoolFlag{ Name: "help", - Usage: "Prints this 🧗help text for commands and subcommands", + Usage: "Prints this help text for commands and subcommands", } // VerboseFlag indicates that all logging output should be printed. VerboseFlag = &BoolFlag{ @@ -101,7 +101,7 @@ func wrapText(text string, numTabs int) string { spaceLeft := 0 maxTextLen := LineLength - numTabs*TabWidth delimiter := strings.Repeat("\t", numTabs) - for i, word := range strings.Fields(text) { + for _, word := range strings.Fields(text) { wordLen := utf8.RuneCountInString(word) if wordLen >= spaceLeft { // If no room left, write the word on the next line. |