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:
parent
8b3e24cd0e
commit
bc1322803d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user