Skip to content

Commit ab97550

Browse files
committed
CLI: also get help with -h
1 parent 829d750 commit ab97550

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

unblob/cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ def __init__(
7676
self.params["plugin_manager"] = plugin_manager
7777

7878

79-
@click.command(help=get_help_text())
79+
@click.command(
80+
help=get_help_text(), context_settings=dict(help_option_names=["--help", "-h"])
81+
)
8082
@click.argument(
8183
"file",
8284
type=click.Path(path_type=Path, dir_okay=False, exists=True, resolve_path=True),

0 commit comments

Comments
 (0)