diff options
| author | Jeff Carr <[email protected]> | 2025-10-02 18:35:35 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-02 18:35:35 -0500 |
| commit | d115858e71040b6d66b56adf7bec454bad1ce2eb (patch) | |
| tree | f5622c3c5b4bfa21eaa5b4280e88fc001edf668e /argv.go | |
| parent | c93300a4b894e11aa2a0b133dfa0b623edf484d1 (diff) | |
use the smart argv Version()
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -72,6 +72,10 @@ func init() { } } +func (args) Buildtime() (string, string) { + return BUILDTIME, VERSION +} + func (args) Version() string { return "wit-test " + VERSION + " Built on " + BUILDTIME } @@ -86,7 +90,7 @@ func (args) Appname() string { func (a args) DoAutoComplete(pb *prep.Auto) { if pb.Cmd == "" { - pb.Autocomplete3([]string{"--bash", "build", "debian", "install", "upgrade", "macos", "--witcom"}) + pb.Autocomplete3([]string{"--bash", "build", "debian", "install", "upgrade", "macos", "--witcom --version"}) } else { pb.SubCommand(pb.Argv...) } |
