Fix bug introduced in previous changeset
authorAlexander Solovyov <piranha@piranha.org.ua>
Sun, 06 Sep 2009 15:08:49 +0300
changeset 86 10399ada69e6
parent 85 baa6caa786af
child 87 ec9736668bca
Fix bug introduced in previous changeset
opster.py
--- a/opster.py	Thu Sep 03 23:21:31 2009 +0300
+++ b/opster.py	Sun Sep 06 15:08:49 2009 +0300
@@ -46,7 +46,7 @@
 
         name_ = name or func.__name__.replace('_', '-')
         if usage is None:
-            usage_ = guess_options
+            usage_ = guess_usage(func, options_)
         else:
             usage_ = usage
         prefix = hide and '~' or (shortlist and '^' or '')