diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-08-07 18:57:01 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-08-07 18:57:01 +0900 |
| commit | b37c1d899349fef9e7af38940ae0c2d507c433a9 (patch) | |
| tree | 5bc20683560d7fcd571d4587487bcf8575a4cf0b /command/builder.go | |
| parent | 6a7f124debbeb4fb36be2b5373517f5677a635d4 (diff) | |
command: use NUL for magic usage string
This change also improves documentation.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'command/builder.go')
| -rw-r--r-- | command/builder.go | 1 |
1 files changed, 1 insertions, 0 deletions
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, |
