michaeledgar/laser — Issue #14: Include option doesn't work
Author: agrimm
Created: 2011-12-19 13:06:51+00:00
State: open

How is include supposed to work?

$ laser -Ilib lib/barcode_list.rb
Error: option '-l' needs a parameter.
Try --help for help.
$ laser --includelib lib/barcode_list.rb
Error: unknown argument '--includelib'.
Try --help for help.
$ laser --include=lib lib/barcode_list.rb
/Users/agrimm/.rvm/gems/ruby-head/gems/laser-0.7.0.pre2/lib/laser/runner.rb:58:in `handle_global_options': undefined method `reverse' for true:TrueClass (NoMethodError)
from /Users/agrimm/.rvm/gems/ruby-head/gems/laser-0.7.0.pre2/lib/laser/runner.rb:26:in `block in collect_options_and_arguments'
from /Users/agrimm/.rvm/gems/ruby-head/gems/laser-0.7.0.pre2/lib/laser/runner.rb:147:in `swizzling_argv'
from /Users/agrimm/.rvm/gems/ruby-head/gems/laser-0.7.0.pre2/lib/laser/runner.rb:24:in `collect_options_and_arguments'
from /Users/agrimm/.rvm/gems/ruby-head/gems/laser-0.7.0.pre2/lib/laser/runner.rb:12:in `run'
from /Users/agrimm/.rvm/gems/ruby-head/gems/laser-0.7.0.pre2/bin/laser:7:in `'
from /Users/agrimm/.rvm/gems/ruby-head/bin/laser:19:in `load'
from /Users/agrimm/.rvm/gems/ruby-head/bin/laser:19:in `

'
$ laser --include lib lib/barcode_list.rb
/Users/agrimm/.rvm/gems/ruby-head/gems/laser-0.7.0.pre2/lib/laser/runner.rb:58:in `handle_global_options': undefined method `reverse' for true:TrueClass (NoMethodError)
from /Users/agrimm/.rvm/gems/ruby-head/gems/laser-0.7.0.pre2/lib/laser/runner.rb:26:in `block in collect_options_and_arguments'
from /Users/agrimm/.rvm/gems/ruby-head/gems/laser-0.7.0.pre2/lib/laser/runner.rb:147:in `swizzling_argv'
from /Users/agrimm/.rvm/gems/ruby-head/gems/laser-0.7.0.pre2/lib/laser/runner.rb:24:in `collect_options_and_arguments'
from /Users/agrimm/.rvm/gems/ruby-head/gems/laser-0.7.0.pre2/lib/laser/runner.rb:12:in `run'
from /Users/agrimm/.rvm/gems/ruby-head/gems/laser-0.7.0.pre2/bin/laser:7:in `'
from /Users/agrimm/.rvm/gems/ruby-head/bin/laser:19:in `load'
from /Users/agrimm/.rvm/gems/ruby-head/bin/laser:19:in `

'