parse program params.