heroku/kensa — pull request #21 by csquared (2011-12-14 20:07:27+00:00)
Title: Command line options

this pull request implements forwarding command line options through on the "test provision" command.

this implementation should be revisited when wes (geemus) revisits command line option parsing for the heroku gem. so rather than duplicate effort there I went with an easier implementation here.

this implementation had to do with the specifics of OptionParser - i throws errors on unknown flags. this behavior is fine for all the other commands. for "test provision", however, we want to allow command line options to pass through.

i took an approach where we take out all flagged arguments before they hit OptionParser. however this means that only

--flag

(implicit boolean) and

--flag=value

type flags are supported and NOT the

--flag value

style