davetron5000/gli — Issue #66: gli modifies behavior of OpenStruct behavior
Author: danielb2
Created: 2011-12-10 17:19:59+00:00
State: open

modifying the underlying behavior of system classes can be dangerous... Think it would be better to subclass OpenStruct to modify it in this case. I actually _had_ an ostruct method defined on an object called `run` and this caused things to break for me.

```
[~/work/log_processor]$ irb
ruby-1.9.2-p180 :001 > require 'gli'
true
ruby-1.9.2-p180 :002 > foo = OpenStruct.new
#
ruby-1.9.2-p180 :003 > foo.run
nil
ruby-1.9.2-p180 :004 > include GLI
Object < BasicObject
ruby-1.9.2-p180 :005 > foo.run
ArgumentError: wrong number of arguments (0 for 1)
from /Users/daniel/.rvm/gems/ruby-1.9.2-p180@log_processor/gems/gli-1.4.0/lib/gli.rb:223:in `run'
from (irb):5
from /Users/daniel/.rvm/rubies/ruby-1.9.2-p180/bin/irb:16:in `

'
```