Skip to content

Commit

Permalink
git: check args
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Feb 6, 2024
1 parent 6d54d83 commit 7176528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completers/git_completer/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func init() {
})

carapace.Gen(rootCmd).PreRun(func(cmd *cobra.Command, args []string) {
if cmd, _, _ := rootCmd.Find(args); cmd == rootCmd {
if cmd, _, _ := rootCmd.Find(args); cmd == rootCmd && len(args) > 0 {
carapace.LOG.Println("adding aliases")
addAliasCompletion(args)
addOtherCommands()
Expand Down

0 comments on commit 7176528

Please sign in to comment.