From 08e407d4fde444d28ae3fd5d7e8ffe7d2c5e4a2e Mon Sep 17 00:00:00 2001 From: rsteube Date: Sun, 17 Dec 2023 13:18:17 +0100 Subject: [PATCH] tmp --- cmd/carapace/cmd/run.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cmd/carapace/cmd/run.go b/cmd/carapace/cmd/run.go index 4fb24fe1ae..619122dfc9 100644 --- a/cmd/carapace/cmd/run.go +++ b/cmd/carapace/cmd/run.go @@ -9,9 +9,10 @@ import ( ) var runCmd = &cobra.Command{ - Use: "run", - Short: "", - Args: cobra.MinimumNArgs(1), + Use: "run", + Short: "", + Args: cobra.MinimumNArgs(1), + DisableFlagParsing: true, Run: func(cmd *cobra.Command, args []string) { _, spec, err := loadSpec(args[0]) if err != nil { @@ -21,7 +22,7 @@ var runCmd = &cobra.Command{ specCmd := spec.ToCobra() - specCmd.SetArgs(args[2:]) + specCmd.SetArgs(args[1:]) specCmd.Execute() // TODO handle error? }, }