Next / Previous / Contents / Shipman's homepage

9. usage(): Show command line argument usage

This code uses Section 10, “fatal(): Write a message and stop”.

kkck
# - - -   u s a g e

def usage():
    '''Display correct command line argument usage

      [ sys.stderr  +:=  error message showing command line usage
        stop execution ]
    '''
    fatal ( "Takes one argument, the name of the puzzle file." )