Files
typeshed/stdlib/2/getopt.pyi
2019-04-13 10:40:52 +02:00

13 lines
448 B
Python

from typing import List, Tuple
class GetoptError(Exception):
opt: str
msg: str
def __init__(self, msg: str, opt: str = ...) -> None: ...
def __str__(self) -> str: ...
error = GetoptError
def getopt(args: List[str], shortopts: str, longopts: List[str] = ...) -> Tuple[List[Tuple[str, str]], List[str]]: ...
def gnu_getopt(args: List[str], shortopts: str, longopts: List[str] = ...) -> Tuple[List[Tuple[str, str]], List[str]]: ...