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:
parent
010daad4ca
commit
278e51ac8d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue