Fix brew style errors
This commit is contained in:
parent
75de4db003
commit
10cbc77af9
@ -154,7 +154,7 @@ module Hbc
|
|||||||
def run
|
def run
|
||||||
command_name, *args = detect_command_and_arguments(*@args)
|
command_name, *args = detect_command_and_arguments(*@args)
|
||||||
command = if help?
|
command = if help?
|
||||||
args.unshift(command_name) if !command_name.nil?
|
args.unshift(command_name) unless command_name.nil
|
||||||
"help"
|
"help"
|
||||||
else
|
else
|
||||||
self.class.lookup_command(command_name)
|
self.class.lookup_command(command_name)
|
||||||
@ -230,7 +230,7 @@ module Hbc
|
|||||||
|
|
||||||
return if @command == "help" && @args.empty?
|
return if @command == "help" && @args.empty?
|
||||||
|
|
||||||
raise ArgumentError, "help does not take arguments"
|
raise ArgumentError, "help does not take arguments."
|
||||||
end
|
end
|
||||||
|
|
||||||
def purpose
|
def purpose
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user