()
Writes help message to `stderr` and exits.
Writes help message to `stderr` and exits.
Writes help message to stderr and exits .
def usage():
    """
    Writes help message to `stderr` and exits.
    """
    print("""\
%(name)s [-h] [-d seconds] [-p seconds] [-f filename] or [string of keys]

    -dN    or --delay=N   : N is seconds before starting
    -pN    or --pause=N   : N is seconds between each key
    -fNAME or --file=NAME : NAME is filename containing keys to send
    -h     or --help      : show help message
""" % {'name': 'SendKeys.py'})
    sys.exit(1)
def usage ( ) : print ( """\
%(name)s [-h] [-d seconds] [-p seconds] [-f filename] or [string of keys]

    -dN    or --delay=N   : N is seconds before starting
    -pN    or --pause=N   : N is seconds between each key
    -fNAME or --file=NAME : NAME is filename containing keys to send
    -h     or --help      : show help message
""" % { 'name' : 'SendKeys.py' } ) sys . exit ( 1 )