summaryrefslogtreecommitdiff
path: root/argv.template.go
diff options
context:
space:
mode:
Diffstat (limited to 'argv.template.go')
-rw-r--r--argv.template.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/argv.template.go b/argv.template.go
index d438b20..e7a9948 100644
--- a/argv.template.go
+++ b/argv.template.go
@@ -31,6 +31,12 @@ func (args) ParseFlags(flags []string) error {
return err
}
+// add this funcgion: this will print the help
+func (args) WriteHelpForSubcommand(cmd string) error {
+ me.pp.WriteHelpForSubcommand(os.Stderr, cmd)
+ return nil
+}
+
// this will print the help for the subcmd
func (args) WriteHelpForAutocomplete(part string, subcmd ...string) error {
return me.pp.WriteHelpForAutocomplete(os.Stderr, os.Stdout, part, subcmd...)
@@ -57,7 +63,7 @@ func (args) InitGui() error {
func (args) Exit() {
gui.UnloadToolkits()
- if argv.Verbose {
+ if me.argv.Verbose() {
log.Info("argv.Exit() called", APPNAME+".Exit()")
}
// remove this from the template for your app (or make one for youself if you need it)