add option parser to generate options