summaryrefslogtreecommitdiff
path: root/usage.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-25 14:50:48 -0500
committerJeff Carr <[email protected]>2025-10-25 14:50:48 -0500
commit9e5b6bebd624f86b1cc5eccf5474b9e63cd24651 (patch)
tree49a81a60eb77488159a197ac5be22f63ecc22e3d /usage.go
parent3297ac713e589db0223fe734e0400d8e8459bdf5 (diff)
notsure
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