From b4c04b513459c387aba8d9ccf6b9d04929542257 Mon Sep 17 00:00:00 2001 From: John Mair Date: Mon, 13 Jun 2011 23:15:37 +1200 Subject: [PATCH] improved description to play command --- lib/pry/default_commands/input.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/pry/default_commands/input.rb b/lib/pry/default_commands/input.rb index 44692a4f..70d362db 100644 --- a/lib/pry/default_commands/input.rb +++ b/lib/pry/default_commands/input.rb @@ -30,7 +30,7 @@ class Pry alias_command(/%(\d+)?(?:\.\.(-?\d+))?/, /amend-line-?(\d+)?(?:\.\.(-?\d+))?/, "") - command "play", "Play a string as input" do |*args| + command "play", "Play back a string or a method or a file as input. Type `play --help` for more information." do |*args| opts = Slop.parse!(args) do |opt| opt.banner "Usage: play [OPTIONS] [--help]\nDefault action (no options) is to play the provided string\ne.g `play puts 'hello world'` #=> \"hello world\"\ne.g `play -m Pry#repl --lines 1..-1`\ne.g `play -f Rakefile --lines 5`\n" @@ -64,7 +64,6 @@ class Pry Pry.active_instance.input = StringIO.new(Array(text_array[range]).join) end - end command "hist", "Show and replay Readline history. Type `hist --help` for more info." do |*args|