fix selecting command

This commit is contained in:
Erik Winter 2024-12-04 07:22:24 +01:00
parent 9aa3a3771d
commit aac74357a0
2 changed files with 3 additions and 1 deletions

View File

@ -33,6 +33,8 @@ func (cli *CLI) Run(args []string) error {
continue continue
case err != nil: case err != nil:
return err return err
default:
return nil
} }
} }

View File

@ -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) fmt.Println(err)
os.Exit(1) os.Exit(1)
} }