Skip to main content

getopt

Standard library Module View source
class GetoptError
class GetoptError(Exception)
Fields 2
opt Any
msg Any
Constructors 1
__init__
__init__(self: Self, msg: str, opt: str = "")
Properties 1
args
@property
args(self: Self) -> Tuple[(str, str)]
Special methods 1
__str__
__str__(self: Self) -> str
function getopt
getopt(args: List[str], shortopts: str, longopts: List[str] = List[str]()) -> Tuple[(List[Tuple[(str, str)]], List[str])]
@overload
getopt(args: List[str], shortopts: str, longopts: str) -> Tuple[(List[Tuple[(str, str)]], List[str])]
function gnu_getopt
gnu_getopt(args: List[str], shortopts: str, longopts: List[str] = List[str]()) -> Tuple[(List[Tuple[(str, str)]], List[str])]
@overload
gnu_getopt(args: List[str], shortopts: str, longopts: str) -> Tuple[(List[Tuple[(str, str)]], List[str])]