From 78fe082a2b85f097dae7b8333ba66a8fd31ca2d0 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sun, 24 Dec 2017 14:56:07 +0000 Subject: cask: exit successfully when given no arguments Fixes https://github.com/Homebrew/brew/issues/3601. --- Library/Homebrew/cask/lib/hbc/cli.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'Library/Homebrew/cask') 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." -- cgit v1.2.3