diff options
| author | L. E. Segovia | 2017-10-21 15:43:20 -0300 |
|---|---|---|
| committer | L. E. Segovia | 2017-10-21 15:43:20 -0300 |
| commit | a8ee54a35fb976ad142b1a21a718d43351ea6268 (patch) | |
| tree | 651df6829de4409184a1f81c65c694c57d115d0f | |
| parent | 10cbc77af9cd4b6c9f69f28ccf87f24359a771fc (diff) | |
| download | brew-a8ee54a35fb976ad142b1a21a718d43351ea6268.tar.bz2 | |
Actually check that the command name was set before adding it to args
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli.rb b/Library/Homebrew/cask/lib/hbc/cli.rb index 7f59954b5..92f0333ad 100644 --- a/Library/Homebrew/cask/lib/hbc/cli.rb +++ b/Library/Homebrew/cask/lib/hbc/cli.rb @@ -154,7 +154,7 @@ module Hbc def run command_name, *args = detect_command_and_arguments(*@args) command = if help? - args.unshift(command_name) unless command_name.nil + args.unshift(command_name) unless command_name.nil? "help" else self.class.lookup_command(command_name) |
