CLI: Fix typo in option name
This commit is contained in:
@@ -102,11 +102,11 @@ void CommandlineInterface::Init(int argc, const char* const* argv) {
|
||||
nupp.RegisterConstraint("--cli-version", ParamConstraint(true, DATA_TYPE::VOID, {}, false, {}));
|
||||
nupp.RegisterAbbreviation("-v", "--cli-version");
|
||||
|
||||
nupp.RegisterDescription("--puffer-input", "Will read the entire input before beginning any digestion.");
|
||||
nupp.RegisterConstraint("--puffer-input", ParamConstraint(true, DATA_TYPE::VOID, {}, false, {}));
|
||||
nupp.RegisterDescription("--buffer-input", "Will read the entire input before beginning any digestion.");
|
||||
nupp.RegisterConstraint("--buffer-input", ParamConstraint(true, DATA_TYPE::VOID, {}, false, {}));
|
||||
|
||||
nupp.RegisterDescription("--puffer-output", "Will digest the entire data before initiating any output.");
|
||||
nupp.RegisterConstraint("--puffer-output", ParamConstraint(true, DATA_TYPE::VOID, {}, false, {}));
|
||||
nupp.RegisterDescription("--buffer-output", "Will digest the entire data before initiating any output.");
|
||||
nupp.RegisterConstraint("--buffer-output", ParamConstraint(true, DATA_TYPE::VOID, {}, false, {}));
|
||||
|
||||
nupp.RegisterDescription("--no-newline", "Don't postfix stdout output with a newline");
|
||||
nupp.RegisterConstraint("--no-newline", ParamConstraint(true, DATA_TYPE::VOID, {}, false, {}));
|
||||
@@ -173,10 +173,10 @@ void CommandlineInterface::SpecialCompatibilityChecking() {
|
||||
|
||||
if (
|
||||
(nupp.HasParam("--progress")) &&
|
||||
(!nupp.HasParam("--puffer-input"))
|
||||
(!nupp.HasParam("--buffer-input"))
|
||||
|
||||
) {
|
||||
CrashWithMsg("--progress requires --puffer-input to work!");
|
||||
CrashWithMsg("--progress requires --buffer-input to work!");
|
||||
}
|
||||
|
||||
return;
|
||||
|
@@ -323,16 +323,16 @@ bool DataIngestionLayer::ReachedEOF() {
|
||||
}
|
||||
|
||||
bool DataIngestionLayer::IsBlockReady() {
|
||||
// We're not ready, if we haven't reached EOF, if we should puffer
|
||||
// We're not ready, if we haven't reached EOF, if we should buffer
|
||||
// the input.
|
||||
if (
|
||||
(CommandlineInterface::Get().HasParam("--puffer-input")) &&
|
||||
(CommandlineInterface::Get().HasParam("--buffer-input")) &&
|
||||
(!reachedEof)
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// If we're not puffering, just return whether or not
|
||||
// If we're not buffering, just return whether or not
|
||||
// we have any blocks...
|
||||
return blocks.size() > 0;
|
||||
}
|
||||
|
@@ -65,13 +65,13 @@ void DataOutputLayer::WriteBlock() {
|
||||
}
|
||||
|
||||
// Check if we have any block to write
|
||||
// and if we should (output-puffering)
|
||||
// and if we should (output-buffering)
|
||||
// Basically: only output if we have anything to output, and
|
||||
// if --puffer-output is given, only output once we have reachedEof.
|
||||
// if --buffer-output is given, only output once we have reachedEof.
|
||||
if (
|
||||
(blocks.size() > 0) &&
|
||||
(
|
||||
(!CommandlineInterface::Get().HasParam("--puffer-output")) ||
|
||||
(!CommandlineInterface::Get().HasParam("--buffer-output")) ||
|
||||
(reachedEof)
|
||||
)
|
||||
) {
|
||||
|
Reference in New Issue
Block a user