tests/selfhelp.py
author Alexander Solovyov <alexander@solovyov.net>
Wed, 23 Mar 2011 09:20:34 +0100
changeset 186 982cea7b69c3
parent 162 e924a731e195
permissions -rw-r--r--
drop excessive exception overriding

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