generated from Trianta/cpp-unity-template
Fixed k=0 issue
This commit is contained in:
parent
c19461fac2
commit
be7ef06a2d
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user