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

Add couple mutually exclusive options errors to 'results' command

This commit is contained in:
Daniel Mach 2024-06-17 20:08:35 +02:00
parent 673907ea9f
commit bf99bf257e

View File

@ -6090,6 +6090,12 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if opts.failed and opts.status_filter:
raise oscerr.WrongArgs('-s and -f cannot be used together')
if opts.multibuild_package and opts.no_multibuild:
self.argparser.error("-M/--multibuild-package and --no-multibuild are mutually exclusive")
if opts.xml and opts.format:
self.argparser.error("--xml and --format are mutually exclusive")
if opts.failed:
opts.status_filter = 'failed'
opts.brief = True