From f3be53050eb147119691700196c02cd7143de141 Mon Sep 17 00:00:00 2001 From: NaiJi Date: Fri, 18 Dec 2020 23:29:03 +0300 Subject: [PATCH] Fix but with negative splitting --- main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index da3bae7..91bff3e 100644 --- a/main.cpp +++ b/main.cpp @@ -78,7 +78,8 @@ static std::tuple parseInput(int argc, char **argv) case NO_ARGC: { // Just launch the application with default parameters - std::cout << "No arguments given. Launching at \"" + DEFAULT_PATH + "\" with splitting " + std::to_string(DEFAULT_SPLITTING) + "\n"; + std::cout << "No arguments given. Launching at \"" << DEFAULT_PATH << "\" with splitting " << std::to_string(DEFAULT_SPLITTING) << "\n" + << "--help for more information.\n"; const auto &[ret_code, ret_path] = parsePath(DEFAULT_PATH); if (ret_code) @@ -109,6 +110,7 @@ static std::tuple parseInput(int argc, char **argv) // full stack if (strcmp(argv[1], output::SPLITTING_FLAG) == 0) { + splitting = -1; // here assuming user is providing it on their own if (std::isdigit(*argv[2])) splitting = std::stoi(argv[2]);