Move command line argument parsing into the __main__ function