diff options
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 { |
