From bc1322803d0123a4c36ad3298d18e3f37186d742 Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Tue, 9 Mar 2010 12:22:04 +0100 Subject: [PATCH] - check args/options --- osc/commandline.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osc/commandline.py b/osc/commandline.py index 6b491e5e..bd295a61 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -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)