Skip to content

Commit 462de79

Browse files
committed
Correct AboutCommand command subclass main call
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent f881126 commit 462de79

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/attributecode/cmd.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,15 @@ def print_version():
7474

7575

7676
class AboutCommand(click.Command):
77+
"""
78+
An enhanced click Command working around some Click quirk.
79+
"""
7780
def main(self, args=None, prog_name=None, complete_var=None,
7881
standalone_mode=True, **extra):
7982
"""
8083
Workaround click bug https://github.com/mitsuhiko/click/issues/365
8184
"""
82-
return AboutCommand.main(
85+
return click.Command.main(
8386
self, args=args, prog_name=self.name,
8487
complete_var=complete_var, standalone_mode=standalone_mode, **extra)
8588

0 commit comments

Comments
 (0)