Add plugin to common command USAGE (#41457)

Because the PluginCommand is defined with `hide_command!`, running
`bin/rails -h` hides the plugin command.

As an alternative to removing the `hide_command!` this adds the plugin
command to the USAGE. Unless it's an engine, because adding an engine to
an engine doesn't make sense.

Both the railtie and engine terms are used so a user can search for both.

[Petrik de Heus + Rafael Mendonça França + Jonathan Hefner]
This commit is contained in:
Petrik de Heus 2021-07-28 23:59:22 +02:00 committed by GitHub
parent e1170909e2
commit db947c2917
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,10 @@
the task description instead of the general Rake help.
*Petrik de Heus*
* Add missing `plugin new` command to help.
*Petrik de Heus
* Fix `config_for` error when there's only a shared root array.

View File

@ -9,6 +9,7 @@ The most common rails commands are:
<% unless engine? -%>
new Create a new Rails application. "rails new my_app" creates a
new application called MyApp in "./my_app"
plugin new Create a new Rails railtie or engine
<% end -%>
All commands can be run with -h (or --help) for more information.