OptionParser.OptionInvalidKeyValueException

Overview

Raised by OptionParser.Parse when a value is not valid for the given key. For example, if a FileOption requires that the file be readable and the parameter given is not readable, this exception will be raised. Another example, say the --age parameter is an integer and the MinimumValue and MaximumValue for the option is set to 1 and 99 but the user supplies 220, this exception will be raised.