Use a getopt based commandline frontend.

No argparse to stay compatible to Python 2.6.