Correct use of optparse API

So much inline signalling within DSL values here...
I need to write a better one - Some time in the future when OSS pays my
bills :D
This commit is contained in:
Markus Schirp 2013-09-13 22:11:59 +02:00
parent 010daad4ca
commit 278e51ac8d

View file

@ -232,9 +232,9 @@ module Mutant
def add_environmental_options(opts)
opts.on('--zombie', 'Run mutant zombified') do
@zombie = true
end.on('-I', 'Add directory to $LOAD_PATH') do |directory|
end.on('-I', '--include DIRECTORY', 'Add DIRECTORY to $LOAD_PATH') do |directory|
$LOAD_PATH << directory
end.on('-r', '--require NAME', 'Require file with NAME') do |name|
end.on('-require', '--require NAME', 'Require file with NAME') do |name|
require(name)
end
end