fixed CLI parsing bug