Actually check that the command name was set before adding it to args
This commit is contained in:
parent
10cbc77af9
commit
a8ee54a35f
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user