refactor(commander) checkParams