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