From 6d5d11bf77ee08cee3049003424e8109f90df38d Mon Sep 17 00:00:00 2001 From: arkohut <39525455+arkohut@users.noreply.github.com> Date: Sun, 23 Jun 2024 13:46:25 +0800 Subject: [PATCH] feat: support -h for help --- memos/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memos/commands.py b/memos/commands.py index fd3ace6..bd1f67a 100644 --- a/memos/commands.py +++ b/memos/commands.py @@ -11,7 +11,7 @@ from tabulate import tabulate from tqdm import tqdm from magika import Magika -app = typer.Typer() +app = typer.Typer(context_settings={"help_option_names": ["-h", "--help"]}) lib_app = typer.Typer() plugin_app = typer.Typer() app.add_typer(plugin_app, name="plugin")