diff --git a/src/vt/configs/arguments/args.cc b/src/vt/configs/arguments/args.cc index e2e8383884..84f1896cb6 100644 --- a/src/vt/configs/arguments/args.cc +++ b/src/vt/configs/arguments/args.cc @@ -313,7 +313,7 @@ void addTraceArgs(CLI::App& app, AppConfig& appConfig) { auto qy = app.add_flag("--vt_trace_sys_collection", appConfig.vt_trace_sys_collection, tsyscoll); auto qz = app.add_flag("--vt_trace_sys_serial_msg", appConfig.vt_trace_sys_serial_msg, tsyssmsg); auto qza = app.add_flag("--vt_trace_spec", appConfig.vt_trace_spec, tspec); - auto qzb = app.add_option("--vt_trace_spec_file", appConfig.vt_trace_spec_file, tspecfile)->capture_default_str(); + auto qzb = app.add_option("--vt_trace_spec_file", appConfig.vt_trace_spec_file, tspecfile)->capture_default_str()->check(CLI::ExistingFile); auto qzc = app.add_flag("--vt_trace_memory_usage", appConfig.vt_trace_memory_usage, tmemusage); auto qzd = app.add_flag("--vt_trace_event_polling", appConfig.vt_trace_event_polling, tpolled); auto qze = app.add_flag("--vt_trace_irecv_polling", appConfig.vt_trace_irecv_polling, tirecv); @@ -500,7 +500,7 @@ void addLbArgs(CLI::App& app, AppConfig& appConfig) { auto zz = app.add_option("--vt_lb_statistics_dir", appConfig.vt_lb_statistics_dir, lb_statistics_dir)->capture_default_str(); auto lbasm = app.add_flag("--vt_lb_self_migration", appConfig.vt_lb_self_migration, lb_self_migration); auto lbspec = app.add_flag("--vt_lb_spec", appConfig.vt_lb_spec, lb_spec); - auto lbspecfile = app.add_option("--vt_lb_spec_file", appConfig.vt_lb_spec_file, lb_spec_file)->capture_default_str(); + auto lbspecfile = app.add_option("--vt_lb_spec_file", appConfig.vt_lb_spec_file, lb_spec_file)->capture_default_str()->check(CLI::ExistingFile); auto debugLB = "Load Balancing"; s->group(debugLB);