dev #12

Merged
Trianta merged 2 commits from dev into master 2023-12-08 22:52:22 -06:00
Showing only changes of commit be7ef06a2d - Show all commits

View File

@ -86,11 +86,11 @@ void Generator::SetArguments(const int argc, char* argv[]) {
} }
if (tempStr == "-k") { if (tempStr == "-k") {
setup.isPrefixSet = true; setup.isPrefixSet = true;
setup.prefixLength = std::stoi(argv[i+1]); setup.prefixLength = std::stoi(argv[i+1]) + 1;
} }
if (tempStr == "-n") { if (tempStr == "-n") {
setup.isOutputSet = true; setup.isOutputSet = true;
setup.outputLength = std::stoi(argv[i+1]); setup.outputLength = std::stoi(argv[i+1]) + 1;
} }
if (tempStr == "-h") { if (tempStr == "-h") {
PrintUsage(); PrintUsage();