Permalink
Browse files

improve help for 'edit' command

  • Loading branch information...
1 parent de12f25 commit 81b69e0d7310e8bf1f5f03b962b459de1c53d3ef @banister banister committed Jan 18, 2013
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/pry/commands/edit.rb
@@ -11,11 +11,12 @@ class Command::Edit < Pry::ClassCommand
banner <<-'BANNER'
Usage: edit [--no-reload|--reload|--patch] [--line LINE] [--temp|--ex|FILE[:LINE]|OBJECT|--in N]
- Open a text editor. When no FILE is given, edits the pry input buffer. Ensure
- `Pry.config.editor` is set to your editor of choice.
+ Open a text editor. When no FILE is given, edits the pry input buffer.
+ When a method/module/command is given, the code is opened in an editor.
+ Ensure `Pry.config.editor` is set to your editor of choice.
edit sample.rb edit -p MyClass#my_method
- edit sample.rb --line 105 edit YourClass
+ edit sample.rb --line 105 edit MyClass
edit MyClass#my_method edit --ex
edit --method edit --ex -p

0 comments on commit 81b69e0

Please sign in to comment.