From f1dd3a085b029ecf29b75373c0f7c982dbe72b88 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 7 Aug 2026 20:32:24 +0900 Subject: command: hard wrap help message flags This greatly improves readability when lots of flags are registered. Signed-off-by: Ophestra --- command/node.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'command/node.go') 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 -- cgit v1.3.1