Searched refs:OptionValueError (Results 1 – 5 of 5) sorted by relevance
132 class OptionValueError (OptParseError): class432 raise OptionValueError(440 raise OptionValueError(1388 except (BadOptionError, OptionValueError) as err:
24 BadOptionError, OptionValueError, Values462 raise OptionValueError(1033 raise OptionValueError("%s: file does not exist" % value)1035 raise OptionValueError("%s: not a regular file" % value)
8 from optparse import Option, OptionParser, OptionValueError
1315 :exc:`OptionValueError` if an invalid string is given.1676 The callback function should raise :exc:`OptionValueError` if there are any1709 raise OptionValueError("can't use -a after -b")1727 raise OptionValueError("can't use %s after -b" % opt_str)1746 raise OptionValueError("%s option invalid when moon is full"1878 Your type-checking function should raise :exc:`OptionValueError` if it1879 encounters any problems. :exc:`OptionValueError` takes a single string1892 from optparse import Option, OptionValueError1901 raise OptionValueError(
2161 :exc:`optparse.OptionError` and :exc:`optparse.OptionValueError` with