Take command line args to determine what mode to run in.