Lines Matching refs:options
72 def list_presets(options): argument
78 if options.presets:
79 return re.split(r'[ ,]+', options.presets)
81 help_text = subprocess.run([options.script, '--help'],
87 def run_one(options, args, stem_prefix='', input_file=None): argument
104 input_file = options.input_file
106 data_filename = output_file_name(options.output_directory, stem, 'h')
107 stdout_filename = output_file_name(options.output_directory, stem, 'out')
108 stderr_filename = output_file_name(options.output_directory, stem, 'err')
109 status_filename = output_file_name(options.output_directory, stem, 'status')
114 cmd = [os.path.abspath(options.script),
119 cwd=options.output_directory,
139 def run_all(options): argument
141 presets = list_presets(options)
143 run_one(options, [preset])
145 run_one(options, ['get', symbol])
146 (stem, filename) = run_one(options, ['set', symbol])
147 run_one(options, ['get', symbol], stem_prefix=stem, input_file=filename)
148 run_one(options, ['--force', 'set', symbol])
149 (stem, filename) = run_one(options, ['set', symbol, 'value'])
150 run_one(options, ['get', symbol], stem_prefix=stem, input_file=filename)
151 run_one(options, ['--force', 'set', symbol, 'value'])
152 run_one(options, ['unset', symbol])
170 options = parser.parse_args()
171 prepare_directory(options.output_directory)
172 run_all(options)