aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask
diff options
context:
space:
mode:
authorMike McQuaid2017-12-29 15:53:39 +0000
committerGitHub2017-12-29 15:53:39 +0000
commitc6eaa73db1336b3daa2f9b1cb9962d2b9e7c8922 (patch)
tree7a71742bf30858583afab7a997646d62c53cc797 /Library/Homebrew/cask
parentc2e1b3cccff1056248bdc231c13ff3d2c9f572ff (diff)
parent78fe082a2b85f097dae7b8333ba66a8fd31ca2d0 (diff)
downloadbrew-c6eaa73db1336b3daa2f9b1cb9962d2b9e7c8922.tar.bz2
Merge pull request #3604 from alyssais/cask_no_arguments
cask: exit successfully when given no arguments.
Diffstat (limited to 'Library/Homebrew/cask')
-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."