aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib
diff options
context:
space:
mode:
authorAlyssa Ross2017-12-24 14:56:07 +0000
committerAlyssa Ross2017-12-24 15:06:49 +0000
commit78fe082a2b85f097dae7b8333ba66a8fd31ca2d0 (patch)
tree2c06c76c13b621d3c8c895d556884f80438eec47 /Library/Homebrew/cask/lib
parent898981f17b21bd8caee820d8caaf6dca1e1e6c13 (diff)
downloadbrew-78fe082a2b85f097dae7b8333ba66a8fd31ca2d0.tar.bz2
cask: exit successfully when given no arguments
Fixes https://github.com/Homebrew/brew/issues/3601.
Diffstat (limited to 'Library/Homebrew/cask/lib')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli.rb b/Library/Homebrew/cask/lib/hbc/cli.rb
index a553ad6da..5da2a137a 100644
--- a/Library/Homebrew/cask/lib/hbc/cli.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli.rb
@@ -229,6 +229,7 @@ module Hbc
purpose
usage
+ return if @command.nil?
return if @command == "help" && @args.empty?
raise ArgumentError, "help does not take arguments."