Lines Matching refs:args
82 args = parser.parse_args()
83 return args
119 def postprocess_file(args: 'Arguments') -> None:
120 with open(args.output, "r") as r:
124 lines = convert_to_static_variable(lines, args.vn)
129 with open(args.output, "w") as w:
133 def preprocess_file(args: 'Arguments', origin_file: T.TextIO, directory: os.PathLike) -> str:
137 if args.create_entry is not None:
140 if args.glsl_ver is not None:
141 override_version(lines, args.glsl_ver)
148 def process_file(args: 'Arguments') -> None:
149 with open(args.input, "r") as infile:
150 copy_file = preprocess_file(args, infile,
151 os.path.dirname(args.output))
153 cmd_list = [args.glslang]
155 if args.Olib:
158 if args.vn is not None:
159 cmd_list.extend(["--variable-name", args.vn])
161 if args.extra is not None:
162 cmd_list.append(args.extra)
164 if args.create_entry is not None:
165 cmd_list.extend(["--entry-point", args.create_entry])
167 for f in args.includes:
172 '-o', args.output,
173 '-S', args.stage,
183 if args.vn is not None:
184 postprocess_file(args)
186 if args.create_entry is not None:
191 args = get_args()
192 process_file(args)