3 # Based on http://docs.python.org/3.2/library/getopt.html
\r
5 from typing import List, Tuple
\r
7 def getopt(args: List[str], shortopts: str,
\r
8 longopts: List[str]=...) -> Tuple[List[Tuple[str, str]],
\r
11 def gnu_getopt(args: List[str], shortopts: str,
\r
12 longopts: List[str]=...) -> Tuple[List[Tuple[str, str]],
\r
15 class GetoptError(Exception):
\r
16 msg = ... # type: str
\r
17 opt = ... # type: str
\r