1
0
Fork 0
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:
David Peter 2012-07-13 14:35:35 -04:00
parent ce3841e3cc
commit 3918dff8bd

View file

@ -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