Sha256: 1e9fee9eebc7d14b14b692ff7ca482ba632c84e5b6d4c640b4f11ee75a6d805f

Contents?: true

Size: 279 Bytes

Versions: 5

Compression:

Stored size: 279 Bytes

Contents

require 'pry-exception_explorer'

Pry::CLI.add_options do
  on :w, :wrap, "Run the provided FILE wrapped by exception explorer", :argument => true do |file|
    PryExceptionExplorer.enabled = false
    PryExceptionExplorer.wrap do
      load file
    end
    
    exit
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pry-exception_explorer-0.2.3 lib/pry-exception_explorer/cli.rb
pry-exception_explorer-0.2.2 lib/pry-exception_explorer/cli.rb
pry-exception_explorer-0.2.1 lib/pry-exception_explorer/cli.rb
pry-exception_explorer-0.2.0 lib/pry-exception_explorer/cli.rb
pry-exception_explorer-0.2.0pre4 lib/pry-exception_explorer/cli.rb