(gh-473) rafactoring the options parsing and determination of acceptable_exit_codes