tests/selfhelp.py
author Dmitriy Morozov <dmitriy@mrzv.org>
Thu, 24 Feb 2011 22:58:28 -0800
changeset 182 f8a82de0540d
parent 162 e924a731e195
permissions -rw-r--r--
Merged upstream

from opster import command

@command()
def selfhelp(assist=('', False, 'show help')):
    '''Displays ability to show help'''
    if assist:
        selfhelp.help()
    else:
        print 'no help for you!'

if __name__ == '__main__':
    selfhelp()