PyDocs

Nav

Superseded modules

GetoptError

getopt

exception (source)
  • GetoptError(msg, opt='')
This is raised when an unrecognized option is found in the argument list or when an option requiring an argument is given none. The argument to the exception is a string indicating the cause of the error. For long options, an argument given to an option which does not require one will also cause this exception to be raised. The attributes msg and opt give the error message and related option; if there is no specific option to which the exception relates, opt is an empty string.
0 Examples
No examples for getopt/GetoptError.
See Also
No see-alsos for getopt/GetoptError
0 Notes
No notes for GetoptError