avernois/ardFeedback-control — pull request #7 by demental (2012-08-17 16:02:09+00:00)
Title: mocking the Trollop::die module function

Here is a proposal for mocking Trollop::die !

BUT !!
see : https://github.com/tokland/trollop/blob/master/lib/trollop.rb#L252

You could specify conflicts between jenkins and travis using this, so:

```ruby
opts = Trollop::options do
opt :url, "Url to /xml/api for jenkins or builds.json for travis", :type => String, :short => "-u"
opt :jenkins, "Use jenkins parser", :short => "-j"
opt :travis, "travis api url", :short => "-t"
opt :serial, "Serial port use to communicate with arduino", :short => "-s", :default => "/dev/ttyACM0"
opt :refresh, "Delay between requests to jenkins (in seconds)", :short => "-r", :type => Integer, :default => 30
conflicts :jenkins, :travis
end
```

More tough to test, but is it worth testing it ? Isn't it tested as a Trollop feature in trollop own tests ?