Skip to content

Commit

Permalink
Update ? alias to use show-source
Browse files Browse the repository at this point in the history
`show-doc` is deprecated in favor of `show-source -d`. Updating the `?` alias accordingly.
  • Loading branch information
tbrisker committed May 3, 2020
1 parent 9d9ae4a commit c256b40
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion lib/pry/commands/show_doc.rb
Expand Up @@ -89,6 +89,5 @@ def start_line_for(code_object)
end

Pry::Commands.add_command(Pry::Command::ShowDoc)
Pry::Commands.alias_command '?', 'show-doc'
end
end
1 change: 1 addition & 0 deletions lib/pry/commands/show_source.rb
Expand Up @@ -113,5 +113,6 @@ def start_line_for(code_object)
Pry::Commands.add_command(Pry::Command::ShowSource)
Pry::Commands.alias_command 'show-method', 'show-source'
Pry::Commands.alias_command '$', 'show-source'
Pry::Commands.alias_command '?', 'show-source -d'
end
end

0 comments on commit c256b40

Please sign in to comment.