examples from https://docs.python.org/2.7/howto/argparse.html#argparse-tutorial