From 012b2d9ba8c846ac5e3a6dcd7d981ca8d7234fe3 Mon Sep 17 00:00:00 2001 From: rsteube Date: Tue, 19 Dec 2023 23:36:57 +0100 Subject: [PATCH] tmp --- cmd/carapace/cmd/root.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/carapace/cmd/root.go b/cmd/carapace/cmd/root.go index 711e60007e..f923ea80a7 100644 --- a/cmd/carapace/cmd/root.go +++ b/cmd/carapace/cmd/root.go @@ -58,8 +58,7 @@ var rootCmd = &cobra.Command{ DisableFlagParsing: true, Run: func(cmd *cobra.Command, args []string) { // since flag parsing is disabled do this manually - // TODO switch to cobra flag parsing with interspersed=false (redirect completion from completers/carapace_completer to here) - switch args[0] { // TODO use flags + switch args[0] { case "--macros": macrosCmd.SetArgs(args[1:]) macrosCmd.Execute()