diff options
| author | Jeff Carr <[email protected]> | 2025-10-28 04:32:17 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-28 04:32:17 -0500 |
| commit | ef505d811db34278d60fdd2880229ad11cf5a190 (patch) | |
| tree | 9f0efa00f10a4c8d17552174eae341fd928e00ac /main.go | |
| parent | b004731821efacd2c38a6b707c2d56025a237d6e (diff) | |
use go-args Help() text
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -8,6 +8,7 @@ import ( "os" "unicode" + "go.wit.com/lib/env" "go.wit.com/lib/protobuf/argvpb" "go.wit.com/log" ) @@ -18,7 +19,10 @@ var resources embed.FS func main() { me = new(mainType) argvpb.Init(&argv, APPNAME, BUILDTIME, VERSION) // adds shell auto-complete - me.homedir, _ = os.UserHomeDir() // store shortcut here todo: add better logic + env.LoadENV("~/.config/witrc") + if env.Verbose() { + env.PrintTable() + } if argvpb.GetCmd() == "" { // user didn't enter a sub command |
