Fix up for command.cxx

Change-Id: I60b79dceb4554fbf6cbbd9f730a2ae3ee7849eac
Set optimizer min/max on setting metric

Change-Id: I6856ec3323bf9982296ccfdfd8a5f778acf77ace