Port flag to IntVar for improved error output