Prevent user from entering incorrect values into command line interface