MCPcopy Create free account
hub / github.com/apenwarr/sshuttle / __init__

Method __init__

options.py:79–89  ·  view source on GitHub ↗
(self, optspec, optfunc=getopt.gnu_getopt,
                 onabort=_default_onabort)

Source from the content-addressed store, hash-verified

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 = []

Callers

nothing calls this directly

Calls 1

_gen_usageMethod · 0.95

Tested by

no test coverage detected