Parse flags/params