aboutsummaryrefslogtreecommitdiffhomepage
path: root/command/node.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-08-07 20:32:24 +0900
committerOphestra <cat@gensokyo.uk>2026-08-07 20:32:24 +0900
commitf1dd3a085b029ecf29b75373c0f7c982dbe72b88 (patch)
treec373765b74aa7257c87761f02f5ab24e2d2de6ee /command/node.go
parentb37c1d899349fef9e7af38940ae0c2d507c433a9 (diff)
command: hard wrap help message flags
This greatly improves readability when lots of flags are registered. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'command/node.go')
-rw-r--r--command/node.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/command/node.go b/command/node.go
index b6f84bf8..0dcdf162 100644
--- a/command/node.go
+++ b/command/node.go
@@ -3,7 +3,6 @@ package command
import (
"flag"
"io"
- "strings"
)
// A node represents a command.
@@ -17,7 +16,7 @@ type node struct {
// Names of commands preceding node.
prefix []string
// Short user-facing representations of flags received by node.
- suffix strings.Builder
+ suffix []string
f HandlerFunc
set *flag.FlagSet