Skip to content

Commit 86236b6

Browse files
committed
Fix tests
1 parent fb6dec1 commit 86236b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

command_setup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func (cmd *Command) setupDefaults(osArgs []string) {
8888
cmd.SuggestCommandFunc = suggestCommand
8989
}
9090

91-
if isRoot {
91+
if isRoot && cmd.EnableShellCompletion {
9292
completionCommand := buildCompletionCommand(cmd.Name)
9393

9494
if cmd.ShellCompletionCommandName != "" {

0 commit comments

Comments
 (0)