summaryrefslogtreecommitdiffstats
path: root/options.py
diff options
context:
space:
mode:
authorAvery Pennarun <apenwarr@gmail.com>2011-01-25 21:19:11 -0800
committerAvery Pennarun <apenwarr@gmail.com>2011-01-25 21:19:28 -0800
commita30c4d7ccb3c731cce24eebc133bc68690420853 (patch)
treeb692f9d2c6063141c0df22edae8630ad890925a3 /options.py
parent9877a8d6fbc0907a5c842a043e3ba88a849e4491 (diff)
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: Gabriel Filion <lelutin@gmail.com>
Diffstat (limited to 'options.py')
-rw-r--r--options.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/options.py b/options.py
index 20a4e28..2f3fff6 100644
--- a/options.py
+++ b/options.py
@@ -76,9 +76,8 @@ class Options:
By default, the parser function is getopt.gnu_getopt, and the abort
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):
- self.exe = exe
self.optspec = optspec
self._onabort = onabort
self.optfunc = optfunc