From aac74357a018c8a1193917d086673b554b759400 Mon Sep 17 00:00:00 2001 From: Erik Winter Date: Wed, 4 Dec 2024 07:22:24 +0100 Subject: [PATCH] fix selecting command --- plan/command/command.go | 2 ++ plan/main.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/plan/command/command.go b/plan/command/command.go index 5e74178..e78dc6a 100644 --- a/plan/command/command.go +++ b/plan/command/command.go @@ -33,6 +33,8 @@ func (cli *CLI) Run(args []string) error { continue case err != nil: return err + default: + return nil } } diff --git a/plan/main.go b/plan/main.go index a461a53..9dab701 100644 --- a/plan/main.go +++ b/plan/main.go @@ -41,7 +41,7 @@ func main() { }, } - if err := cli.Run(os.Args); err != nil { + if err := cli.Run(os.Args[1:]); err != nil { fmt.Println(err) os.Exit(1) }