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