Arg parsing and launch code