summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/pry/command_set.rb2
-rw-r--r--lib/pry/commands/bang.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/pry/command_set.rb b/lib/pry/command_set.rb
index 70ec2e53..339e6424 100644
--- a/lib/pry/command_set.rb
+++ b/lib/pry/command_set.rb
@@ -193,7 +193,7 @@ class Pry
options = original_options.merge!(
desc: "Alias for `#{action}`",
- listing: match
+ listing: match.is_a?(String) ? match : match.inspect
).merge!(options)
# ensure default description is used if desc is nil
diff --git a/lib/pry/commands/bang.rb b/lib/pry/commands/bang.rb
index ca42834e..1879c64e 100644
--- a/lib/pry/commands/bang.rb
+++ b/lib/pry/commands/bang.rb
@@ -6,7 +6,7 @@ class Pry
match(/^\s*!\s*$/)
group 'Editing'
description 'Clear the input buffer.'
- command_options use_prefix: false
+ command_options use_prefix: false, listing: '!'
banner <<-'BANNER'
Clear the input buffer. Useful if the parsing process goes wrong and you get