pry/pry — Issue #441: cat --ex doesn't appear to set _file_
Author: banister
Created: 2012-01-21 12:36:06+00:00
State: open
Labels: bug

```ruby
[24] (pry) main: 0> cat --ex 0
Exception: ArgumentError: wrong number of arguments(0 for 1)
--
From: /Users/john/ruby/projects/pry/lib/pry/default_commands/shell.rb @ line 55 @ level: 0 of backtrace (of 54).

50: e.g: gist -c show-method
51: USAGE
52:
53: opt.on :m, :method, "Save a method's source.", true do |meth_name|
54: meth = get_method_or_raise(meth_name, target, {})
=> 55: self.content << method.source
56: end
57: opt.on :c, :command, "Save a command's source.", true
58: opt.on :f, :file, "Save a file.", true
59: opt.on :l, :lines, "Only gist a subset of lines (only works with -m and -f)", :optional => true, :as => Range, :default => 1..-1
60: opt.on :i, :in, "Gist entries from Pry's input expression history. Takes an index or range.", :optional => true,
[25] (pry) main: 0> _file_
=> "/Users/john/ruby/projects/pry/lib/pry/pry_instance.rb"
[26] (pry) main: 0>
```