From 1816e9dfad79d9c397b351680a04d98cb5b0db7b Mon Sep 17 00:00:00 2001 From: Kjetil Olsen Lye Date: Wed, 9 Oct 2024 20:57:37 +0200 Subject: [PATCH] Added better help message --- flowexperimental/comp/flowexp_comp.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/flowexperimental/comp/flowexp_comp.cpp b/flowexperimental/comp/flowexp_comp.cpp index 7eeca4576..878811398 100644 --- a/flowexperimental/comp/flowexp_comp.cpp +++ b/flowexperimental/comp/flowexp_comp.cpp @@ -96,10 +96,13 @@ main(int argc, char** argv) if (!componentSupported) { fmt::print("Deck has {} components, not supported. In this build of the simulator, we support the " - "following number of components:\n\n\t{}.\n\n Note that the supported components can be changed " - "when configuring CMake through the OPM_COMPILE_COMPONENTS options. Exiting.\n", - numComps, - fmt::join(std::array {OPM_COMPILE_COMPONENTS_TEMPLATE_LIST}, ", ")); + "following number of components:\n\n\t{}\n\nNote that the supported components can be changed " + "when configuring CMake through the OPM_COMPILE_COMPONENTS option. That is, run cmake as " + "eg\n\n\tcmake ... -DOPM_COMPILE_COMPONENTS=\"4;7\"\n\nto compile only components 4 and 7, " + "or\n\n\tcmake ... -DOPM_COMPILE_COMPONENTS=3\n\nto compile only component 3, then " + "recompile.\n\nExiting.\n", + numComps, + fmt::join(std::array {OPM_COMPILE_COMPONENTS_TEMPLATE_LIST}, ", ")); } return executionStatus; }