1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Prevent command name being printed twice.

Thor would inadvertantly duplicate the command usage because
of the help method in a command class.

Fixes #26664.

[ Yuji Yaginuma & Kasper Timm Hansen ]
This commit is contained in:
Kasper Timm Hansen 2016-12-31 19:14:08 +01:00
parent d753645d40
commit 46da4b143f

View file

@ -130,6 +130,14 @@ module Rails
end
end
end
def help
if command_name = self.class.command_name
self.class.command_help(shell, command_name)
else
super
end
end
end
end
end