Moved OptionsParser into library to use with other commands