basic cmd param parsing