tests/selfhelp.py
author Alexander Solovyov <alexander@solovyov.net>
Wed, 26 Jan 2011 19:46:19 +0100
changeset 175 1c983a38fdbc
parent 162 e924a731e195
permissions -rw-r--r--
a bit of updates to docs

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