tests/selfhelp.py
author Andrey Vlasovskikh <andrey.vlasovskikh@gmail.com>
Thu, 27 Jan 2011 02:48:28 +0300
changeset 176 e167305851a0
parent 162 e924a731e195
permissions -rw-r--r--
Arch Linux package for 2.1

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