From 278e51ac8d912cc5e47b4dd5278cfd574bbf3445 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Fri, 13 Sep 2013 22:11:59 +0200 Subject: [PATCH] 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 --- lib/mutant/cli.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mutant/cli.rb b/lib/mutant/cli.rb index d5720477..4a69eb2d 100644 --- a/lib/mutant/cli.rb +++ b/lib/mutant/cli.rb @@ -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