author | Alexander Solovyov <piranha@piranha.org.ua> |
Thu, 03 Sep 2009 23:19:29 +0300 | |
changeset 83 | cf70fd773191 |
parent 82 | 074c1768759a |
child 84 | 8f828d323b3d |
--- a/opster.py Thu Sep 03 22:14:59 2009 +0300 +++ b/opster.py Thu Sep 03 23:19:29 2009 +0300 @@ -44,8 +44,8 @@ # no options supplied and no options present in func options_ = [] - name_ = name or func.__name__ usage_ = usage or guess_usage(func, options_) + name_ = name or func.__name__.replace('_', '-') prefix = hide and '~' or (shortlist and '^' or '') CMDTABLE[prefix + name_] = (func, options_, usage_)