diff options
author | Tomer Brisker <tbrisker@users.noreply.github.com> | 2020-05-03 13:53:11 +0300 |
---|---|---|
committer | Tomer Brisker <tbrisker@gmail.com> | 2020-05-03 14:00:05 +0300 |
commit | c256b40e6877a29d97858c675acf1e9a41b141b2 (patch) | |
tree | a0f4c76dce0d26ef3b21a2e9ac66126b66d7c988 | |
parent | 9d9ae4a0b0bd487bb41170c834b3fa417e161f23 (diff) | |
download | pry-c256b40e6877a29d97858c675acf1e9a41b141b2.tar.gz |
Update `?` alias to use show-source
`show-doc` is deprecated in favor of `show-source -d`. Updating the `?` alias accordingly.
-rw-r--r-- | lib/pry/commands/show_doc.rb | 1 | ||||
-rw-r--r-- | lib/pry/commands/show_source.rb | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/lib/pry/commands/show_doc.rb b/lib/pry/commands/show_doc.rb index c0f183b2..3742348a 100644 --- a/lib/pry/commands/show_doc.rb +++ b/lib/pry/commands/show_doc.rb @@ -89,6 +89,5 @@ class Pry end Pry::Commands.add_command(Pry::Command::ShowDoc) - Pry::Commands.alias_command '?', 'show-doc' end end diff --git a/lib/pry/commands/show_source.rb b/lib/pry/commands/show_source.rb index 7df865c6..1a020349 100644 --- a/lib/pry/commands/show_source.rb +++ b/lib/pry/commands/show_source.rb @@ -113,5 +113,6 @@ class Pry 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 |