mirror of
https://github.com/pry/pry-rails.git
synced 2022-11-09 12:36:03 -05:00
Add USAGE banner to show-routes.
This commit is contained in:
parent
ce3841e3cc
commit
3918dff8bd
1 changed files with 6 additions and 0 deletions
|
@ -27,6 +27,12 @@ module PryRails
|
|||
Commands = Pry::CommandSet.new do
|
||||
create_command "show-routes", "Print out all defined routes in match order, with names." do
|
||||
def options(opt)
|
||||
opt.banner unindent <<-USAGE
|
||||
Usage: show-routes [-G]
|
||||
|
||||
show-routes displays the current Rails app's routes.
|
||||
USAGE
|
||||
|
||||
opt.on :G, "grep", "Filter output by regular expression", :argument => true
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue