From e77b08f5b7da7479fd01043d9ce37bf15e357a73 Mon Sep 17 00:00:00 2001 From: Amjith Ramanujam Date: Sun, 24 Nov 2024 19:28:41 -0800 Subject: [PATCH] Try again to release via GH actions. --- CHANGELOG.md | 2 +- litecli/main.py | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 27c79cb..f1e8c68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 1.13.1 - 2024-11-24 +## 1.13.2 - 2024-11-24 ### Internal diff --git a/litecli/main.py b/litecli/main.py index e10212c..a0607ab 100644 --- a/litecli/main.py +++ b/litecli/main.py @@ -825,15 +825,8 @@ def get_last_query(self): return self.query_history[-1][0] if self.query_history else None -def version_callback(ctx: click.Context, param: click.Parameter, value: bool) -> None: - if not value or ctx.resilient_parsing: - return - click.echo(f"Version: {__version__}", color=ctx.color) - ctx.exit() - - @click.command() -@click.option("-V", "--version", callback=version_callback, expose_value=False, is_eager=True, is_flag=True, help="Show version.") +@click.version_option(__version__, "-V", "--version") @click.option("-D", "--database", "dbname", help="Database to use.") @click.option( "-R",