Added generic validator scheme for Commands and extracted the choices capability into an external function
Added generic validator scheme for Commands and extracted the choices capability into an external function

TvBMcMaster/pymeasure,ralph-group/pymeasure,dvspirito/pymeasure