tests/selfhelp.py
author Alexander Solovyov <alexander@solovyov.net>
Tue, 29 Mar 2011 10:31:33 +0200
changeset 187 5e96ab1087da
parent 162 e924a731e195
permissions -rw-r--r--
that would be 2.2, add info to changelog

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