I've got a ruby bin with some arguments, namely -s
, -c
and -r
(short for scrape, create and run). Now I'd like to set some defaults to scrape and create ('.'
in both cases), but if I use :default
in trollop, I can't check wherever that argument is set or not.
project --scrape
should be equivalent to
project --scrape .
how to achieve that?
And while at it, how do I make
project target
to be equivalent with
project --run target
?