From da8cb39972f4d1db989f000dae8e575e167b4de8 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 28 2017 12:58:47 +0000 Subject: Drop the default method since it make the test fail on jenkins --- diff --git a/pagure/cli/admin.py b/pagure/cli/admin.py index 50e0097..e80c76e 100644 --- a/pagure/cli/admin.py +++ b/pagure/cli/admin.py @@ -94,7 +94,7 @@ def _parser_admin_token_create(subparser): """ Set up the CLI argument parser for the admin-token create action. """ # Create admin token local_parser = subparser.add_parser( - 'create', help="Create a new API token") + 'create', help="Create a new API token") local_parser.add_argument( 'user', help="User to associate with the token") local_parser.set_defaults(func=do_create_admin_token) @@ -127,11 +127,6 @@ def parse_arguments(): '--debug', default=False, action='store_true', help='Increase the verbosity of the information displayed') - def _f(*args, **kwargs): - print(parser.format_help()) - - parser.set_defaults(func=_f) - subparser = parser.add_subparsers(title='actions') # refresh-gitolite