Reorder function call and definition for setting argparse.

The wrong order caused code to explode.