Flask CLI commands and arguments Flask CLI commands and arguments flask flask

Flask CLI commands and arguments


@app.cli.command is only to tell the click about this user_info. If you want the arguments and other click functionality please use click as well.

@app.cli.command()@click.option('--email')def user_info(email):    ...