Lines Matching refs:options
36 def __init__(self, fixers, options, explicit, nobackups, show_diffs,
41 options: A dict with RefactoringTool configuration.
63 super(StdoutRefactoringTool, self).__init__(fixers, options, explicit)
145 parser = optparse.OptionParser(usage="2to3 [options] file|dir ...")
180 options, args = parser.parse_args(args)
181 if options.write_unchanged_files:
183 if not options.write:
185 options.write = True
188 if options.output_dir and not options.nobackups:
190 if options.add_suffix and not options.nobackups:
193 if not options.write and options.no_diffs:
195 if not options.write and options.nobackups:
197 if options.list_fixes:
209 if options.write:
212 if options.print_function:
216 level = logging.DEBUG if options.verbose else logging.INFO
222 unwanted_fixes = set(fixer_pkg + ".fix_" + fix for fix in options.nofix)
224 if options.fix:
226 for fix in options.fix:
242 if options.output_dir:
245 options.output_dir, input_base_dir)
248 options.nobackups, not options.no_diffs,
250 output_dir=options.output_dir,
251 append_suffix=options.add_suffix)
259 rt.refactor(args, options.write, options.doctests_only,
260 options.processes)
262 assert options.processes > 1