My port of docopt to Erlang