From 7c368860a6294fb7104a28e6f56a3ef48e7ce8be Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 28 2017 12:58:47 +0000 Subject: Drop the lambda function for a proper one --- diff --git a/pagure/cli/admin.py b/pagure/cli/admin.py index 2c43e3a..f3dfe5c 100644 --- a/pagure/cli/admin.py +++ b/pagure/cli/admin.py @@ -126,7 +126,11 @@ def parse_arguments(): parser.add_argument( '--debug', default=False, action='store_true', help='Increase the verbosity of the information displayed') - parser.set_defaults(func=lambda a, k: print(parser.format_help())) + + def _f(*args, **kwargs): + print(parser.format_help()) + + parser.set_defaults(func=_f) subparser = parser.add_subparsers(title='actions')