1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-23 13:31:48 +01:00

rename requestmaintainership to requestrole (much nicer and makes more sense)

This commit is contained in:
Pavol Rusnak 2010-11-24 18:20:49 +01:00
parent 6d89fee500
commit cc9d3e07eb

View File

@ -1358,16 +1358,15 @@ Please submit there instead, or use --nodevelproject to force direct submission.
help='specify message TEXT') help='specify message TEXT')
@cmdln.option('-r', '--role', metavar='role', default='maintainer', @cmdln.option('-r', '--role', metavar='role', default='maintainer',
help='specify user role (default: maintainer)') help='specify user role (default: maintainer)')
@cmdln.alias("reqmaintainership") @cmdln.alias("reqrole")
@cmdln.alias("reqms") def do_requestrole(self, subcmd, opts, *args):
def do_requestmaintainership(self, subcmd, opts, *args): """${cmd_name}: requests to add user as a certain role (usually maintainer)
"""${cmd_name}: requests to add user as maintainer
usage: usage:
osc requestmaintainership # for current user in checked out package osc requestrole # for current user in checked out package
osc requestmaintainership USER # for specified user in checked out package osc requestrole USER # for specified user in checked out package
osc requestmaintainership PROJECT PACKAGE # for current user osc requestrole PROJECT PACKAGE # for current user
osc requestmaintainership PROJECT PACKAGE USER # request for specified user osc requestrole PROJECT PACKAGE USER # request for specified user
${cmd_option_list} ${cmd_option_list}
""" """
@ -1395,8 +1394,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
else: else:
raise oscerr.WrongArgs('Wrong number of arguments.') raise oscerr.WrongArgs('Wrong number of arguments.')
if not opts.role in ('maintainer', 'bugowner'): if not opts.role in ('maintainer', 'bugowner', 'reviewer', 'downloader'):
raise oscerr.WrongOptions('invalid \'--role\': either specify \'maintainer\' or \'bugowner\'') raise oscerr.WrongOptions("invalid '--role': specify one of these: 'maintainer', 'bugowner', 'reviewer', 'downloader'")
arg = [ user, opts.role, project, package ] arg = [ user, opts.role, project, package ]