summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0xAB <0xAB@protonmail.com>2017-09-01 20:03:59 +0100
committer0xAB <0xAB@protonmail.com>2017-09-01 20:03:59 +0100
commitdfa85e9f5ff69bc86ac4e5fce78c19ac09ece911 (patch)
tree961d7b402eac38e376af0b0c4fe7513fe303741e
parenta4e5830bff460e227db8605966bced2094093868 (diff)
downloadpry-dfa85e9f5ff69bc86ac4e5fce78c19ac09ece911.tar.gz
group *-inspector commands in "Inspectors" group.
-rw-r--r--lib/pry/commands/change_inspector.rb12
-rw-r--r--lib/pry/commands/list_inspectors.rb8
2 files changed, 10 insertions, 10 deletions
diff --git a/lib/pry/commands/change_inspector.rb b/lib/pry/commands/change_inspector.rb
index 183dec4f..ad470e7a 100644
--- a/lib/pry/commands/change_inspector.rb
+++ b/lib/pry/commands/change_inspector.rb
@@ -1,21 +1,21 @@
class Pry::Command::ChangeInspector < Pry::ClassCommand
match 'change-inspector'
- group 'Input and Output'
- description 'Change the current inspector proc.'
+ group 'Inspectors'
+ description 'Change the current inspector.'
command_options argument_required: true
banner <<-BANNER
Usage: change-inspector NAME
- Change the proc used to print return values. See list-inspectors for a list
- of available procs and a short description of what each one does.
+ Change the current inspector. See 'list-inspectors' for a complete list of
+ available inspectors.
BANNER
def process(inspector)
if inspector_map.key?(inspector)
_pry_.print = inspector_map[inspector][:value]
- output.puts "Switched to the '#{inspector}' inspector!"
+ output.puts "Switched to '#{inspector}' inspector."
else
- raise Pry::CommandError, "'#{inspector}' isn't a known inspector!"
+ raise Pry::CommandError, "'#{inspector}' isn't known."
end
end
diff --git a/lib/pry/commands/list_inspectors.rb b/lib/pry/commands/list_inspectors.rb
index c96c3951..513b21ce 100644
--- a/lib/pry/commands/list_inspectors.rb
+++ b/lib/pry/commands/list_inspectors.rb
@@ -1,12 +1,12 @@
class Pry::Command::ListInspectors < Pry::ClassCommand
match 'list-inspectors'
- group 'Input and Output'
- description 'List the inspector procs available for use.'
+ group 'Inspectors'
+ description 'List the inspector that are available to use.'
banner <<-BANNER
Usage: list-inspectors
- List the inspector procs available to print return values. You can use
- change-inspector to switch between them.
+ List the inspectors available for displaying an object that's returned
+ by Kernel.eval().
BANNER
def process