WIP port to docopt