@@ -124,6 +124,14 @@ pub struct RunArgs {
124124 /// Whether to save cairo-profiler trace data.
125125 #[ arg( long, default_value_t = false ) ]
126126 pub save_profiler_trace_data : bool ,
127+
128+ /// Whether to save program output to a file.
129+ #[ arg( long, default_value_t = false ) ]
130+ pub save_program_output : bool ,
131+
132+ /// Whether to save stdout output to a file.
133+ #[ arg( long, default_value_t = false ) ]
134+ pub save_print_output : bool ,
127135}
128136
129137impl ToArgs for RunArgs {
@@ -135,6 +143,8 @@ impl ToArgs for RunArgs {
135143 print_program_output,
136144 print_resource_usage,
137145 save_profiler_trace_data,
146+ save_program_output,
147+ save_print_output,
138148 } = self ;
139149 let mut args = arguments. to_args ( ) ;
140150 if let Some ( output) = output {
@@ -152,6 +162,12 @@ impl ToArgs for RunArgs {
152162 if * save_profiler_trace_data {
153163 args. push ( "--save-profiler-trace-data" . to_string ( ) ) ;
154164 }
165+ if * save_program_output {
166+ args. push ( "--save-program-output" . to_string ( ) ) ;
167+ }
168+ if * save_print_output {
169+ args. push ( "--save-print-output" . to_string ( ) ) ;
170+ }
155171 args
156172 }
157173}
0 commit comments