tests/selfhelp.py
author Alexander Solovyov <alexander@solovyov.net>
Sat, 12 Mar 2011 17:02:30 +0100
changeset 183 72ee7b8c0821
parent 162 e924a731e195
permissions -rw-r--r--
fix tests.t rst syntax

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()