use automatic program arguments only when arguments box is visible
@@ -227,9 +227,12 @@ class Runner:
else:
working_directory = None
+ if get_workbench().get_option("view.show_program_arguments"):
args_str = get_workbench().get_option("run.program_arguments")
get_workbench().log_program_arguments_string(args_str)
args = shlex.split(args_str)
+ else:
+ args = []
self.execute_script(filename, args, working_directory, command_name)
