Lines Matching refs:options
36 options, _ = parser.parse_args(args)
37 return options
77 def append_group_by_lines(options, source_dict): argument
78 for line in options.lines:
92 def append_group_by_files(options, source_dict): argument
93 for append_f in options.files:
98 def append_group_files(target_f, options): argument
99 with open(options.source_file, 'r') as source_f:
101 if options.files:
102 append_group_by_files(options, source_dict)
103 if options.lines:
104 append_group_by_lines(options, source_dict)
109 def append_passwd_files(target_f, options): argument
111 with open(options.source_file, 'r') as source_f:
115 if options.files:
116 for append_f in options.files:
119 if options.lines:
120 for line in options.lines:
130 options = parse_args(args)
132 if options.files:
133 depfile_deps = ([options.source_file] + options.files)
135 depfile_deps = ([options.source_file])
137 …with os.fdopen(os.open(options.output, os.O_RDWR | os.O_CREAT, stat.S_IWUSR | stat.S_IRUSR), 'w') …
138 if operator.contains(options.source_file, "group"):
139 append_group_files(target_f, options)
141 append_passwd_files(target_f, options)
143 build_utils.write_depfile(options.depfile,
144 options.output, depfile_deps, add_pydeps=False)