Skip to content

Commit

Permalink
fix: showCompletionScript was logging script twice (#1388)
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronhunter authored and bcoe committed Jul 31, 2019
1 parent 9febcbe commit 07c8537
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions yargs.js
Expand Up @@ -923,8 +923,7 @@ function Yargs (processArgs, cwd, parentRequire) {
self.showCompletionScript = function ($0, cmd) {
argsert('[string] [string]', [$0, cmd], arguments.length)
$0 = $0 || self.$0
completionCommand = cmd || completionCommand || 'completion'
_logger.log(completion.generateCompletionScript($0, completionCommand))
_logger.log(completion.generateCompletionScript($0, cmd || completionCommand || 'completion'))
return self
}

Expand Down

0 comments on commit 07c8537

Please sign in to comment.