Fixed a bug in help_options
authorDmitriy Morozov <dmitriy@mrzv.org>
Wed, 08 Sep 2010 17:30:13 -0700
changeset 107 564899a22b31
parent 106 139707873c14
child 108 8befe33c55b1
Fixed a bug in help_options
opster.py
--- a/opster.py	Fri Sep 03 18:17:31 2010 -0700
+++ b/opster.py	Wed Sep 08 17:30:13 2010 -0700
@@ -242,7 +242,8 @@
 def help_options(options):
     yield 'options:\n\n'
     output = []
-    for short, name, default, desc in options:
+    for o in options:
+        short, name, default, desc = o[:4]
         if hasattr(default, '__call__'):
             default = default(None)
         default = default and ' (default: %s)' % default or ''