Reformat '-p'  in run command. Add error check to port option