diff options
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 |
