Commit a30c4d7c authored by Avery Pennarun's avatar Avery Pennarun

options: remove unused 'exe' parameter

The 'exe' parameter was added in the hope of using it for additional
contextual information in the help text that Options generates. It was
till then abandoned and was judged as superflous information.

Remove the 'exe' parameter from Options' constructor.

(copied from the 'bup' project)
Signed-off-by: 's avatarGabriel Filion <lelutin@gmail.com>
parent 9877a8d6
...@@ -68,7 +68,7 @@ server (internal use only) ...@@ -68,7 +68,7 @@ server (internal use only)
firewall (internal use only) firewall (internal use only)
hostwatch (internal use only) hostwatch (internal use only)
""" """
o = options.Options('sshuttle', optspec) o = options.Options(optspec)
(opt, flags, extra) = o.parse(sys.argv[1:]) (opt, flags, extra) = o.parse(sys.argv[1:])
if opt.daemon: if opt.daemon:
......
...@@ -76,9 +76,8 @@ class Options: ...@@ -76,9 +76,8 @@ class Options:
By default, the parser function is getopt.gnu_getopt, and the abort By default, the parser function is getopt.gnu_getopt, and the abort
behaviour is to exit the program. behaviour is to exit the program.
""" """
def __init__(self, exe, optspec, optfunc=getopt.gnu_getopt, def __init__(self, optspec, optfunc=getopt.gnu_getopt,
onabort=_default_onabort): onabort=_default_onabort):
self.exe = exe
self.optspec = optspec self.optspec = optspec
self._onabort = onabort self._onabort = onabort
self.optfunc = optfunc self.optfunc = optfunc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment