Skip to content

Commit

Permalink
#1933: Args: Check if user specified spec files (LB/Trace) exist
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobDomagala committed Oct 5, 2022
1 parent 1e4bc97 commit 6b2a117
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vt/configs/arguments/args.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 6b2a117

Please sign in to comment.