diff options
Diffstat (limited to 'lib/optparse.rb')
-rw-r--r-- | lib/optparse.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/optparse.rb b/lib/optparse.rb index 86681235a0..aef3c0d486 100644 --- a/lib/optparse.rb +++ b/lib/optparse.rb @@ -1605,6 +1605,13 @@ class OptionParser argv end + def set_backtrace(array) + unless $DEBUG + array.delete_if(&%r"\A#{Regexp.quote(__FILE__)}:"o.method(:=~)) + end + super(array) + end + def set_option(opt, eq) if eq @args[0] = opt |