Skip to content

Commit 3282ab6

Browse files
committed
Allow using -h for help
It's common to support both `-h` and `--help`. I often find myself using `ghstack -h` and hitting an error. Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
1 parent 4b8798e commit 3282ab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ghstack/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def cli_context(
4848
yield shell, config, github
4949

5050

51-
@click.group(invoke_without_command=True)
51+
@click.group(invoke_without_command=True, context_settings={"help_option_names": ["-h", "--help"]})
5252
@click.pass_context
5353
@click.version_option(ghstack.__version__, "--version", "-V")
5454
@click.option("--debug", is_flag=True, help="Log debug information to stderr")

0 commit comments

Comments
 (0)