Output generator usage on two lines

All other command usage uses two lines for "Usage: rails command".
This updates the usage of generators to do the same.
It also changes the command to `bin/rails`.
This commit is contained in:
Petrik 2023-03-27 19:39:02 +02:00
parent 99096b88ae
commit f7204d8d35
2 changed files with 6 additions and 3 deletions

@ -210,7 +210,8 @@ INFO: You can also use the alias "g" to invoke the generator command: `bin/rails
```bash
$ bin/rails generate
Usage: rails generate GENERATOR [args] [options]
Usage:
bin/rails generate GENERATOR [args] [options]
...
...
@ -236,7 +237,8 @@ INFO: All Rails console utilities have help text. As with most *nix utilities, y
```bash
$ bin/rails generate controller
Usage: bin/rails generate controller NAME [action action] [options]
Usage:
bin/rails generate controller NAME [action action] [options]
...
...

@ -163,7 +163,8 @@ def hide_namespaces(*namespaces)
# Show help message with available generators.
def help(command = "generate")
puts "Usage: rails #{command} GENERATOR [args] [options]"
puts "Usage:"
puts " bin/rails #{command} GENERATOR [args] [options]"
puts
puts "General options:"
puts " -h, [--help] # Print generator's options and usage"