Skip to content

Commit 942775d

Browse files
committed
accept -h for --help
1 parent 18b6a84 commit 942775d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

qbpm/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@
1010
from .profiles import Profile
1111
from .utils import SUPPORTED_MENUS, default_profile_dir, error
1212

13+
CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])
14+
1315

1416
def exit_with(result: bool):
1517
exit(0 if result else 1)
1618

1719

18-
@click.group()
20+
@click.group(context_settings=CONTEXT_SETTINGS)
1921
@click.option(
2022
"-P",
2123
"--profile-dir",

0 commit comments

Comments
 (0)