Skip to content

Commit a618c0f

Browse files
committed
Allow '-h' and '-help' for '--help'
Fixes #178
1 parent 25fb903 commit a618c0f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

decompyle3/bin/decompile.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# Mode: -*- python -*-
33
#
4-
# Copyright (c) 2015-2017, 2019-2024 by Rocky Bernstein
4+
# Copyright (c) 2015-2017, 2019-2025 by Rocky Bernstein
55
# Copyright (c) 2000-2002 by hartmut Goebel <[email protected]>
66
#
77

@@ -24,7 +24,7 @@ def usage():
2424
sys.exit(1)
2525

2626

27-
@click.command()
27+
@click.command(context_settings={"help_option_names": ["--help", "-help", "-h"]})
2828
@click.option(
2929
"--asm++/--no-asm++",
3030
"-A",
@@ -73,14 +73,14 @@ def usage():
7373
"--start-offset",
7474
"start_offset",
7575
default=0,
76-
help="start decomplation at offset; default is 0 or the starting offset.",
76+
help="start decompilation at offset; default is 0 or the starting offset.",
7777
)
7878
@click.version_option(version=__version__)
7979
@click.option(
8080
"--stop-offset",
8181
"stop_offset",
8282
default=-1,
83-
help="stop decomplation when seeing an offset greater or equal to this; default is "
83+
help="stop decompilation when seeing an offset greater or equal to this; default is "
8484
"-1 which indicates no stopping point.",
8585
)
8686
@click.argument("files", nargs=-1, type=click.Path(readable=True), required=True)

0 commit comments

Comments
 (0)