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
|
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) unless 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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user