(self, optspec, optfunc=getopt.gnu_getopt,
onabort=_default_onabort)
| 77 | behaviour is to exit the program. |
| 78 | """ |
| 79 | def __init__(self, optspec, optfunc=getopt.gnu_getopt, |
| 80 | onabort=_default_onabort): |
| 81 | self.optspec = optspec |
| 82 | self._onabort = onabort |
| 83 | self.optfunc = optfunc |
| 84 | self._aliases = {} |
| 85 | self._shortopts = 'h?' |
| 86 | self._longopts = ['help'] |
| 87 | self._hasparms = {} |
| 88 | self._defaults = {} |
| 89 | self._usagestr = self._gen_usage() |
| 90 | |
| 91 | def _gen_usage(self): |
| 92 | out = [] |
nothing calls this directly
no test coverage detected