@@ -71,16 +71,17 @@ int main(int argc, char** argv) {
71
71
run->add_option (" -u,--uuid" , run_options.uuid , " Override simulation UUID" )
72
72
->envname (" CLOE_SIMULATION_UUID" );
73
73
run->add_flag (" --allow-empty" , run_options.allow_empty , " Allow empty simulations" );
74
- run->add_flag (" --write-output,!--no-write-output" , run_options.write_output ,
74
+ run->add_flag (" -w,- -write-output,!--no-write-output" , run_options.write_output ,
75
75
" Do (not) write any output files" )
76
76
->envname (" CLOE_WRITE_OUTPUT" );
77
+ run->add_option (" -o,--output-path" , run_options.output_path , " Write output to given directory" )
78
+ ->envname (" CLOE_OUTPUT_PATH" );
77
79
run->add_flag (" --progress,!--no-progress" , run_options.report_progress ,
78
80
" Do (not) report progress" );
79
81
run->add_flag (" --require-success,!--no-require-success" , run_options.require_success ,
80
82
" Require simulation success" )
81
83
->envname (" CLOE_REQUIRE_SUCCESS" );
82
- run->add_flag (" --debug-lua" , run_options.debug_lua ,
83
- " Debug the Lua simulation" );
84
+ run->add_flag (" --debug-lua" , run_options.debug_lua , " Debug the Lua simulation" );
84
85
run->add_option (" --debug-lua-port" , run_options.debug_lua_port ,
85
86
" Port to listen on for debugger to attach to" )
86
87
->envname (" CLOE_DEBUG_LUA_PORT" );
@@ -171,6 +172,7 @@ int main(int argc, char** argv) {
171
172
lua_options.no_system_lua = true ;
172
173
run_options.require_success = true ;
173
174
}
175
+
174
176
stack_options.environment ->prefer_external (false );
175
177
stack_options.environment ->allow_undefined (stack_options.interpolate_undefined );
176
178
stack_options.environment ->insert (CLOE_SIMULATION_UUID_VAR, " ${" CLOE_SIMULATION_UUID_VAR " }" );
0 commit comments