Files
typeshed/stdlib/getopt.pyi
2023-03-21 09:12:34 +01:00

12 lines
439 B
Python

__all__ = ["GetoptError", "error", "getopt", "gnu_getopt"]
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]]: ...
class GetoptError(Exception):
msg: str
opt: str
def __init__(self, msg: str, opt: str = "") -> None: ...
error = GetoptError