Skip to content

Commit 6d4e81c

Browse files
authored
use cmd.Name when generating completion script (urfave#2012)
1 parent 588ada5 commit 6d4e81c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ func (cmd *Command) setupDefaults(osArgs []string) {
257257
}
258258

259259
if cmd.EnableShellCompletion || cmd.Root().shellCompletion {
260-
completionCommand := buildCompletionCommand(osArgs[0])
260+
completionCommand := buildCompletionCommand(cmd.Name)
261261

262262
if cmd.ShellCompletionCommandName != "" {
263263
tracef(

0 commit comments

Comments
 (0)