Whatang
3/2/2019 - 2:25 PM

Click CLI skeleton

Basic code skeleton for creating a command line tool using click.

import click

@click.version_option(version=VERSION)
@click.group()
@click.option('--option')
def cli():
    pass

@cli.command()
def command_name():
    pass


if __name__ == "__main__":
    cli()