Skip to content

Commit

Permalink
Merge pull request cucumber#252 from chasestubblefield/add-no-drb
Browse files Browse the repository at this point in the history
Add --no-drb command line option
  • Loading branch information
mattwynne committed Mar 28, 2012
2 parents 9e472fd + 11b9e22 commit 616c59f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/cucumber/cli/options.rb
Expand Up @@ -38,6 +38,7 @@ class Options
"on Ruby's LOAD_PATH, for example in a Ruby gem."
]
DRB_FLAG = '--drb'
DRB_OPTIONAL_FLAG = '--[no-]drb'
PROFILE_SHORT_FLAG = '-p'
NO_PROFILE_SHORT_FLAG = '-P'
PROFILE_LONG_FLAG = '--profile'
Expand Down Expand Up @@ -261,8 +262,8 @@ def parse!(args)
opts.on("-x", "--expand", "Expand Scenario Outline Tables in output.") do
@options[:expand] = true
end
opts.on(DRB_FLAG, "Run features against a DRb server. (i.e. with the spork gem)") do
@options[:drb] = true
opts.on(DRB_OPTIONAL_FLAG, "Run features against a DRb server. (i.e. with the spork gem)") do |drb|
@options[:drb] = drb
end
opts.on("--port PORT", "Specify DRb port. Ignored without --drb") do |port|
@options[:drb_port] = port
Expand Down

0 comments on commit 616c59f

Please sign in to comment.