Rewrite command-line interface using docopt