rafactoring the options parsing and determination of acceptable_exit_codes