Skip to content

Commit

Permalink
Add -h option to print help (#4316)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
cfasnacht and pre-commit-ci[bot] authored Oct 31, 2024
1 parent 4c0cdeb commit 75f762f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/molecule/command/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,11 @@ def click_group_ex() -> ClickGroup:
cls=HelpColorsGroup,
# Workaround to disable click help line truncation to ~80 chars
# https://github.com/pallets/click/issues/486
context_settings={"max_content_width": 9999, "color": should_do_markup()},
context_settings={
"max_content_width": 9999,
"color": should_do_markup(),
"help_option_names": ["-h", "--help"],
},
help_headers_color="yellow",
help_options_color="green",
help_options_custom_colors={
Expand Down

0 comments on commit 75f762f

Please sign in to comment.