summaryrefslogtreecommitdiff
path: root/usage.go
diff options
context:
space:
mode:
Diffstat (limited to 'usage.go')
-rw-r--r--usage.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/usage.go b/usage.go
index c69f2d2..4fed7c7 100644
--- a/usage.go
+++ b/usage.go
@@ -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