improve option parsing in bin/marked.