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:
parent
99096b88ae
commit
f7204d8d35
@ -210,7 +210,8 @@ INFO: You can also use the alias "g" to invoke the generator command: `bin/rails
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ bin/rails generate
|
$ 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
|
```bash
|
||||||
$ bin/rails generate controller
|
$ 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.
|
# Show help message with available generators.
|
||||||
def help(command = "generate")
|
def help(command = "generate")
|
||||||
puts "Usage: rails #{command} GENERATOR [args] [options]"
|
puts "Usage:"
|
||||||
|
puts " bin/rails #{command} GENERATOR [args] [options]"
|
||||||
puts
|
puts
|
||||||
puts "General options:"
|
puts "General options:"
|
||||||
puts " -h, [--help] # Print generator's options and usage"
|
puts " -h, [--help] # Print generator's options and usage"
|
||||||
|
Loading…
Reference in New Issue
Block a user