diff options
| author | Jeff Carr <[email protected]> | 2025-10-19 04:40:29 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-19 04:40:29 -0500 |
| commit | 632b75e95a4450656dabed2a2df991ab2e986073 (patch) | |
| tree | 42d700c26a3ace063753fac0782a11a2821f7eac | |
| parent | 9278157fc2a5ac8835dbc1aa505ccff9ec5f064f (diff) | |
more or less
| -rw-r--r-- | argv.custom.go | 6 | ||||
| -rw-r--r-- | argv.template.go | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/argv.custom.go b/argv.custom.go index 5913868..93ca5ec 100644 --- a/argv.custom.go +++ b/argv.custom.go @@ -75,12 +75,6 @@ func (args) Examples() string { return out } -func (args) Version() string { - // log.Info(me.sh.Version()) - // return APPNAME + " " + VERSION + " Built on " + BUILDTIME - return argvpb.StandardVersion(APPNAME, VERSION, BUILDTIME) -} - // matches func (c CleanCmd) Match(partial string) []string { // return repos here diff --git a/argv.template.go b/argv.template.go index 9eefbd2..07a161f 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.sh.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) |
