diff options
| author | Jeff Carr <[email protected]> | 2025-09-25 02:40:24 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-25 02:40:24 -0500 |
| commit | 89c9b46f8b06c882dbc60d2cdf4c19b50397acbc (patch) | |
| tree | 1a7213fff73f0d9b7fcef82bc24be7348a66b745 /main.go | |
| parent | 8ab09243500576460a9e5b12cae0b997933d6577 (diff) | |
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -17,7 +17,6 @@ import ( "github.com/svent/go-nbreader" "github.com/google/uuid" - "go.wit.com/dev/alexflint/arg" "go.wit.com/lib/gui/prep" "go.wit.com/log" timestamppb "google.golang.org/protobuf/types/known/timestamppb" @@ -33,17 +32,11 @@ var resources embed.FS func main() { me = new(gusconf) - prep.Bash(ARGNAME, argv.DoAutoComplete) // this line should be: prep.Bash(argv) - me.myGui = prep.Gui() // prepares the GUI package for go-args - me.pp = arg.MustParse(&argv) + me.myGui = prep.Gui() // prepares the GUI package for go-args + me.auto = prep.Bash3(&argv) // add support for bash autocomplete with go-arg - if me.pp == nil { - me.pp.WriteHelp(os.Stdout) - os.Exit(0) - } log.Info("tmp hack", uuid.New().String()) - me = new(gusconf) me.pollDelay = 10 * time.Second if argv.UseME { |
