tests/test.out
author Andrey Vlasovskikh <andrey.vlasovskikh@gmail.com>
Sat, 11 Sep 2010 15:16:24 +0400
changeset 119 f9c027029540
parent 99 a77c4a82e836
permissions -rw-r--r--
Fixed catching unnececcary exceptions Exception Abort can't be thrown, so it is useless. Catching SystemExit and KeyboardInterrupt makes little sense as the thread can be terminated by KeyboardInterrupt before or after entering the wrapped command processing function. So one have to handle these exceptions in his main function anyway. Catching any exception in order to print a message and re-raise it changes the standard behaviour and might seem confusing.

usage: test.py <command> [options]

commands:

 simple  Just simple command to do nothing.
['test', 'ui']
test.py complex [-p] [--exit value] ...

That's more complex command indented to do something

    Let's try to do that (what?!)

options:

 -p --pass     don't run the command
    --exit     exit with supplied code (default: 0)
 -n --name     optional name
 -v --verbose  enable additional output
 -q --quiet    suppress output
 -h --help     display help