1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

Fix 'osc lock' command

This commit is contained in:
Daniel Mach 2022-09-20 10:03:02 +02:00
parent 84138fb41f
commit 2d14d0d1ec

View File

@ -3749,13 +3749,17 @@ Please submit there instead, or use --nodevelproject to force direct submission.
@cmdln.option('-m', '--message', metavar='TEXT',
help='specify log message TEXT')
def do_lock(self, subcmd, opts, project, package=None):
@cmdln.option('project')
@cmdln.option('package', nargs='?')
def do_lock(self, subcmd, opts):
"""
Locks a project or package
usage:
osc lock PROJECT [PACKAGE]
"""
project = opts.project
package = opts.package
apiurl = self.get_api_url()
kind = 'prj'
path_args = (project,)