From d2083632eb038f64319d0a27e7dfb20ca17b1ba0 Mon Sep 17 00:00:00 2001 From: long2ice Date: Wed, 27 May 2020 12:44:49 +0800 Subject: [PATCH] add cli -V --- aerich/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aerich/cli.py b/aerich/cli.py index af4e19d..25f6be6 100644 --- a/aerich/cli.py +++ b/aerich/cli.py @@ -28,7 +28,7 @@ parser = ConfigParser() @click.group(context_settings={"help_option_names": ["-h", "--help"]}) -@click.version_option(__version__) +@click.version_option(__version__, '-V', '--version') @click.option( "-c", "--config", default="aerich.ini", show_default=True, help="Config file.", ) @@ -166,7 +166,7 @@ def history(ctx): ) @click.pass_context async def init( - ctx: Context, tortoise_orm, location, + ctx: Context, tortoise_orm, location, ): config_file = ctx.obj["config_file"] name = ctx.obj["name"]