Skip to content

Commit

Permalink
fix MOAR remarks
Browse files Browse the repository at this point in the history
  • Loading branch information
boegel committed Oct 10, 2015
1 parent d843c9d commit e577869
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vsc/utils/generaloption.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,10 +528,10 @@ def is_value_a_commandline_option(self, opt, value, index=None):
return None

if not self.ALLOW_OPTION_NAME_AS_VALUE:
if '-%s' % value in self._short_opt.keys() + self._long_opt.keys():
value_as_opt = '-%s' % value
if value_as_opt in self._short_opt or value_as_opt in self._long_opt:
return "'-%s' is a valid option" % value

# First test the exact problem where the value is an option
if (not self.ALLOW_OPTION_AS_VALUE) and (value in self._long_opt or value in self._short_opt):
return "Value '%s' is also a valid option" % value

Expand Down

0 comments on commit e577869

Please sign in to comment.