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:
parent
d753645d40
commit
46da4b143f
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue