move command line option parser to a separate file