diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-02-23 01:17:57 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-02-23 01:17:57 +0900 |
| commit | 416d93e8802dc4f42ce814edf874c79e2682af58 (patch) | |
| tree | 119b758f8f0f582404f9d0dc11a5a95f693599e9 /command/command.go | |
| parent | 312753924be1109a22269ebde81fa244ef9b6379 (diff) | |
command: expose print help
This is useful for custom help commands.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'command/command.go')
| -rw-r--r-- | command/command.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/command/command.go b/command/command.go index d0cab36a..525dde3d 100644 --- a/command/command.go +++ b/command/command.go @@ -39,6 +39,9 @@ type ( // NewCommand returns a new subcommand with direct command handling. NewCommand(name, usage string, f HandlerFunc) (sub Flag[Node]) + // PrintHelp prints a help message to the configured writer. + PrintHelp() + Flag[T] } ) |
