1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-27 02:16:12 +01:00

- check args/options

This commit is contained in:
Marcus Huewe 2010-03-09 12:22:04 +01:00
parent 8b3e24cd0e
commit bc1322803d

View File

@ -5110,6 +5110,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
${cmd_usage}
${cmd_option_list}
"""
if len(val) and opts.delete:
raise oscerr.WrongOptions('Sorry, --delete and the specification of a value argument are mutually exclusive')
opt, newval = conf.config_set_option(section, opt, ' '.join(val), delete=opts.delete, update=False)
if newval is None and opts.delete:
print '\'%s\': \'%s\' got removed' % (section, opt)