adapt to docopt 0.6.1 interface