API Reference / Classes / getopt / GetoptError GetoptError Standard library class getopt.GetoptError View source class GetoptError class GetoptError(Exception) Fields 2 opt Any msg Any Constructors 1 __init__ __init__(self: Self, msg: str, opt: str = "") Defined in getopt Properties 1 args @property args(self: Self) -> Tuple[(str, str)] Defined in getopt Special methods 1 __str__ __str__(self: Self) -> str Defined in getopt
class GetoptError class GetoptError(Exception) Fields 2 opt Any msg Any Constructors 1 __init__ __init__(self: Self, msg: str, opt: str = "") Defined in getopt Properties 1 args @property args(self: Self) -> Tuple[(str, str)] Defined in getopt Special methods 1 __str__ __str__(self: Self) -> str Defined in getopt