summaryrefslogtreecommitdiff
path: root/argv.template.go
diff options
context:
space:
mode:
Diffstat (limited to 'argv.template.go')
-rw-r--r--argv.template.go13
1 files changed, 12 insertions, 1 deletions
diff --git a/argv.template.go b/argv.template.go
index f6cd250..8be4948 100644
--- a/argv.template.go
+++ b/argv.template.go
@@ -36,6 +36,17 @@ func (args) WriteHelpForAutocomplete(part string, subcmd ...string) error {
return me.pp.WriteHelpForAutocomplete(os.Stderr, os.Stdout, part, subcmd...)
}
+func (args) WriteHelpForAutocompleteDebug(part string, subcmd ...string) error {
+ f, _ := os.OpenFile("/tmp/argv.junk", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
+ return me.pp.WriteHelpForAutocomplete(f, os.Stdout, part, subcmd...)
+}
+
+// add this funcgion: this will print the help
+func (args) WriteHelp() error {
+ me.pp.WriteHelp(os.Stderr)
+ return nil
+}
+
func (args) InitGui() error {
// panic("got here")
arg.Register(&gui.ArgvGui)
@@ -47,7 +58,7 @@ func (args) InitGui() error {
func (args) Exit() {
gui.UnloadToolkits()
if me.argv.Verbose() {
- log.Info("argv.Exit() called", APPNAME + ".Exit()")
+ log.Info("argv.Exit() called", APPNAME+".Exit()")
}
}