From a8ee54a35fb976ad142b1a21a718d43351ea6268 Mon Sep 17 00:00:00 2001 From: L. E. Segovia Date: Sat, 21 Oct 2017 15:43:20 -0300 Subject: Actually check that the command name was set before adding it to args --- Library/Homebrew/cask/lib/hbc/cli.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') 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) -- cgit v1.2.3