Skip to content

Commit

Permalink
Add the short option for help command: -h
Browse files Browse the repository at this point in the history
It's much easier for people use `-h` command-line switch instead of longer `--help` to
retrieve the help about CLI or a specific command.  This PR extends the current behavior
by allowing the short option as well in addition to longer one.
  • Loading branch information
alexott committed Jun 26, 2024
1 parent 765fd2b commit 739f07d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sigma/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@
from .pysigma import check_pysigma_command


@click.group()
CONTEXT_SETTINGS={
"help_option_names": ['-h', '--help']
}


@click.group(context_settings=CONTEXT_SETTINGS)
def cli():
pass

Expand Down

0 comments on commit 739f07d

Please sign in to comment.