@@ -432,15 +432,16 @@ def _setup_action_login_parser(subparsers):
432432 usage = 'bugzilla login [--api-key] [username [password]]'
433433 description = """Log into bugzilla and save a login cookie or token.
434434Note: These tokens are short-lived, and future Bugzilla versions will no
435- longer support token authentication at all. Please use an API key instead."""
435+ longer support token authentication at all. Please use a
436+ ~/.config/python-bugzilla/bugzillarc file with an API key instead, or
437+ use 'bugzilla login --api-key' and we will save it for you."""
436438 p = subparsers .add_parser ("login" , description = description , usage = usage )
437439 p .add_argument ('--api-key' , action = 'store_true' , default = False ,
438- help = 'Use an API-KEY instead of username/password.' )
439- p . add_argument ( "pos_username" , nargs = "?" , help = "Optional username " \
440- "(ignored if --api-key is provided) " ,
440+ help = 'Prompt for and save an API key into bugzillarc, '
441+ 'rather than prompt for username and password.' )
442+ p . add_argument ( "pos_username" , nargs = "?" , help = "Optional username " ,
441443 metavar = "username" )
442- p .add_argument ("pos_password" , nargs = "?" , help = "Optional password " \
443- "(ignored if --api-key is provided)" ,
444+ p .add_argument ("pos_password" , nargs = "?" , help = "Optional password " ,
444445 metavar = "password" )
445446
446447
0 commit comments