deploy: better command line options handling