[flashrom-gerrit] [M] Change in flashrom[master]: cli_classic: wrap options validation in function