parse command parameters, implement Command#setOptions