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) }