migrated from docopt to click