diff options
-rw-r--r-- | lib/pry/commands/change_inspector.rb | 12 | ||||
-rw-r--r-- | lib/pry/commands/list_inspectors.rb | 8 |
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 |