From b37c1d899349fef9e7af38940ae0c2d507c433a9 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 7 Aug 2026 18:57:01 +0900 Subject: command: use NUL for magic usage string This change also improves documentation. Signed-off-by: Ophestra --- command/builder.go | 1 + 1 file changed, 1 insertion(+) (limited to 'command/builder.go') diff --git a/command/builder.go b/command/builder.go index c0782c66..d3b0c3f5 100644 --- a/command/builder.go +++ b/command/builder.go @@ -13,6 +13,7 @@ func New(output io.Writer, logf LogFunc, name string, early HandlerFunc) Command return c } +// newNode initialises a subcommand tree and returns its address. func newNode(output io.Writer, logf LogFunc, name, usage string) *node { n := &node{ name: name, usage: usage, -- cgit v1.3.1