Switches command line argument to flag