From 3b52fcb16191887bbdad6c69c4a652f44acfe82e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=88king?= Date: Fri, 11 Jan 2013 14:12:26 -0600 Subject: [PATCH] Update show-file docs --- lib/pry/commands/save_file.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/pry/commands/save_file.rb b/lib/pry/commands/save_file.rb index 25e4c8b5..d22a6924 100644 --- a/lib/pry/commands/save_file.rb +++ b/lib/pry/commands/save_file.rb @@ -7,20 +7,20 @@ class Pry description 'Export to a file using content from the REPL.' banner <<-'BANNER' - Usage: save-file [OPTIONS] [FILE] + Usage: save-file [OPTIONS] --to [FILE] Export to a file using content from the REPL. - save-file my_method ./hello.rb - save-file -i 1..10 ./hello.rb --append - save-file show-method ./my_command.rb - save-file sample_file.rb --lines 2..10 ./output_file.rb + save-file my_method --to hello.rb + save-file -i 1..10 --to hello.rb --append + save-file show-method --to my_command.rb + save-file sample_file.rb --lines 2..10 --to output_file.rb BANNER def options(opt) CodeCollector.inject_options(opt) - opt.on :to=, "Select where content is to be saved" + opt.on :to=, "Specify the output file path" opt.on :a, :append, "Append output to file" end