Updated version of cmdoption.