From a50062225076d6768859d6915ce7dff62e892b0d Mon Sep 17 00:00:00 2001 From: Abhilash Raj Date: Wed, 9 Aug 2017 20:45:54 -0700 Subject: Print the list of available commands with `mailman --help` Overriding the format_options method of click.MultiCommand skips printing the list of available commands. This commit just brings that option back so that help text is now more informative. --- src/mailman/bin/mailman.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mailman/bin/mailman.py b/src/mailman/bin/mailman.py index e012237f3..6b8cb26da 100644 --- a/src/mailman/bin/mailman.py +++ b/src/mailman/bin/mailman.py @@ -81,6 +81,8 @@ class Subcommands(click.MultiCommand): if opts: with formatter.section('Options'): formatter.write_dl(opts) + # Print the list of available commands. + super().format_commands(ctx, formatter) @click.group( -- cgit v1.2.3-70-g09d2