diff options
| author | Jeff Carr <[email protected]> | 2025-10-25 14:50:48 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-25 14:50:48 -0500 |
| commit | 9e5b6bebd624f86b1cc5eccf5474b9e63cd24651 (patch) | |
| tree | 49a81a60eb77488159a197ac5be22f63ecc22e3d /usage.go | |
| parent | 3297ac713e589db0223fe734e0400d8e8459bdf5 (diff) | |
notsure
Diffstat (limited to 'usage.go')
| -rw-r--r-- | usage.go | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -4,6 +4,8 @@ import ( "fmt" "io" "strings" + + "go.wit.com/lib/protobuf/argvpb" ) // the width of the left column @@ -90,11 +92,21 @@ func withEnv(env string) string { return "env: " + env } +func (p *Parser) WriteHelpArgv() error { + argvpb.PB.Stderr += fmt.Sprintln("go-args.WriteHelpArgv() not finished") + return nil +} + // WriteHelp writes the usage string followed by the full help string for each option func (p *Parser) WriteHelp(w io.Writer) { p.WriteHelpForSubcommand(w, p.subcommand...) } +func (p *Parser) WriteHelpForSubcommandArgv() error { + argvpb.PB.Stderr += fmt.Sprintln("go-args.WriteHelpForSubcommandArgv() not finished") + return nil +} + // WriteHelpForSubcommand writes the usage string followed by the full help // string for a specified subcommand. To write help for a top-level subcommand, // provide just the name of that subcommand. To write help for a subcommand that |
