Closed bitstein closed 8 years ago
Ah nice :). Glad someone is playing around with this.
A nicer way to do this is to use docopt's default capabilities - basically, add [default: firefox]
to the option's line in the docstring, and docopt will set that as the default. Check out how --mongo-host
works, for example. I would've done this for login & password too but couldn't figure out how to give it multiple defaults on one line.
Updated.
This adds an optional command to enter a selenium webdriver, for instance, PhantomJS. It defaults to Firefox.