tests/selfhelp.py
author Alexander Solovyov <alexander@solovyov.net>
Sun, 23 Jan 2011 18:37:25 +0100
changeset 164 7d5e22ae5ccb
parent 162 e924a731e195
permissions -rw-r--r--
Added tag 2.0 for changeset a8a8ae1a3fbe

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