diff options
Diffstat (limited to 'complete.go')
| -rw-r--r-- | complete.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/complete.go b/complete.go index 1c815ec..d521f73 100644 --- a/complete.go +++ b/complete.go @@ -5,6 +5,8 @@ import ( "io" "os" "strings" + + "go.wit.com/lib/protobuf/argvpb" ) // has the variables for autocomplete @@ -15,6 +17,11 @@ type Complete struct { Stdout io.Writer // this is where Stdout } +func (p *Parser) WriteHelpForAutocompleteArgv() error { + argvpb.PB.Stderr += fmt.Sprintln("go-args.WriteHelpForAutocompleteArgv() not finished") + return nil +} + // same as WriteHelpForSubcommand above, but can flip to STDERR and STDOUT // most shell autocomplete behavior usually wants things that way func (p *Parser) WriteHelpForAutocomplete(stderr io.Writer, stdout io.Writer, partial string, subcommand ...string) error { |
