diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2018-03-13 20:51:29 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2018-03-13 20:56:37 +0100 |
commit | 6629d51a2756fadf961bb09df20579cacfef2c8e (patch) | |
tree | 046606294f0d861afda7886bb75b5e7ad1c311d2 /actionpack/test/dispatch/request_id_test.rb | |
parent | f6310a3f163d565cfc014143212e5ee2f0f2ae79 (diff) | |
download | rails-6629d51a2756fadf961bb09df20579cacfef2c8e.tar.gz rails-6629d51a2756fadf961bb09df20579cacfef2c8e.tar.bz2 rails-6629d51a2756fadf961bb09df20579cacfef2c8e.zip |
Rely on Rails::Command's help output.
We end up with:
```
Usage:
bin/rails routes [options]
Options:
-c, [--controller=CONTROLLER] # Filter by a specific controller, e.g. PostsController or Admin::PostsController.
-g, [--grep=GREP] # Grep routes by a specific pattern.
-E, [--expanded], [--no-expanded] # Print routes expanded vertically with parts explained.
```
which does miss the bit about routes being printed in order.
Also:
* Renames options to ease help output readability, then clarifies each option.
* Fixes a bunch of indentation.
Diffstat (limited to 'actionpack/test/dispatch/request_id_test.rb')
0 files changed, 0 insertions, 0 deletions