move cmd line option helper functions into command_line_options module