From 6cf89a9847c107b983cc9ce536c6a3ae5d9095c8 Mon Sep 17 00:00:00 2001 From: Stefan Pranger Date: Mon, 24 Jan 2022 20:15:56 +0100 Subject: [PATCH] changes to option parser output --- main.cpp | 2 +- util/OptionParser.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/main.cpp b/main.cpp index bb5b270..090293f 100644 --- a/main.cpp +++ b/main.cpp @@ -17,7 +17,7 @@ int main(int argc, char* argv[]) { auto verbose_max_flow = optionParser.add("a", "max-flow", "Include verbose information about the max flow to the output."); auto min_cut_option = optionParser.add("m", "minimum-cut", "Include the minimum cut set to the output."); - auto verbose_option = optionParser.add("v", "verbose", "Output verbose algorithmic information and runtime. Pass twice to get step-by-step information."); + auto verbose_option = optionParser.add("v", "verbose", "Output verbose algorithmic information and runtime. Pass twice to get information about all augmenting paths computed."); try { optionParser.parse(argc, argv); diff --git a/util/OptionParser.cpp b/util/OptionParser.cpp index d8d7501..36d80ec 100644 --- a/util/OptionParser.cpp +++ b/util/OptionParser.cpp @@ -34,19 +34,19 @@ namespace parser { int checkOption(const int input_filename_count, const int input_string_count) { if(input_filename_count > 1) { - std::cerr << "You may only pass one input graph file."; + std::cerr << "You may only pass one input graph file.\n"; return INPUT_ERROR; } if(input_string_count > 1) { - std::cerr << "You may only pass one input graph string."; + std::cerr << "You may only pass one input graph string.\n"; return INPUT_ERROR; } if(input_filename_count > 0 && input_string_count > 0) { - std::cerr << "You may only pass either an input graph file or an input graph string."; + std::cerr << "You may only pass either an input graph file or an input graph string.\n"; return INPUT_ERROR; } if(input_filename_count == 0 && input_string_count == 0) { - std::cerr << "You need to pass either and input graph file or an input graph string."; + std::cerr << "You need to pass either and input graph file or an input graph string.\n"; return INPUT_ERROR; } return INPUT_OK;