From 2d18cac04043a05bc18fb79b0fd1567963f26641 Mon Sep 17 00:00:00 2001 From: Jonathan Lifflander Date: Thu, 9 Feb 2023 14:34:35 -0800 Subject: [PATCH] #2086: args: make --vt_lb_name and --vt_lb_file_name mutually exclusive --- src/vt/configs/arguments/args.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/vt/configs/arguments/args.cc b/src/vt/configs/arguments/args.cc index 7ee0b87ac5..eb2897e043 100644 --- a/src/vt/configs/arguments/args.cc +++ b/src/vt/configs/arguments/args.cc @@ -499,6 +499,10 @@ void addLbArgs(CLI::App& app, AppConfig& appConfig) { 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()->check(CLI::ExistingFile); + // --vt_lb_name excludes --vt_lb_file_name, and vice versa + v->excludes(u); + u->excludes(v); + auto debugLB = "Load Balancing"; s->group(debugLB); t1->group(debugLB);