code: def command_line(argv):
      
      arguments = parse_command_line(argv)
      if arguments.generate:
          generate_fixer_file(arguments.generate)
      paths = edit_files(arguments.patterns,
                         expressions=arguments.expressions,
                         functions=arguments.functions,
                         executables=arguments.executables,
                         start_dirs=arguments.start_dirs,
                         max_depth=arguments.max_depth,
                         dry_run=arguments.dry_run,
                         output=arguments.output,
                         encoding=arguments.encoding,
                         newline=arguments.newline)
      # If the output is not sys.stdout, we need to close it because
      # argparse.FileType does not do it for us.
      is_sys = arguments.output in [sys.stdout, sys.stderr]
      if not is_sys and isinstance(arguments.output, io.IOBase):
          arguments.output.close()
      return paths
docs: Instantiate an editor and process arguments.
  
      Optional argument:
        - processed_paths: paths processed are appended to the list.