From 74bff0c98d9959750c45990d46cd363911d69c6e Mon Sep 17 00:00:00 2001 From: rsteube Date: Thu, 22 Sep 2022 21:29:23 +0200 Subject: [PATCH] git-alias: added help flag --- completers/git-alias_completer/cmd/root.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/completers/git-alias_completer/cmd/root.go b/completers/git-alias_completer/cmd/root.go index 0e2259e744..db74f037cb 100644 --- a/completers/git-alias_completer/cmd/root.go +++ b/completers/git-alias_completer/cmd/root.go @@ -19,6 +19,8 @@ func Execute() error { func init() { carapace.Gen(rootCmd).Standalone() + rootCmd.Flags().Bool("help", false, "show help") + carapace.Gen(rootCmd).PositionalCompletion( git.ActionAliases(""), )