|
|
|
@ -51,6 +51,7 @@ int main(int argc, char* argv[]) { |
|
|
|
|
massivedynamic::Type type = massivedynamic::Type::MEDIUM; |
|
|
|
|
massivedynamic::Format format = massivedynamic::Format::CONSOLE; |
|
|
|
|
bool fromStdin = true; |
|
|
|
|
bool anyParameterSet = false; |
|
|
|
|
std::string paramData = ""; |
|
|
|
|
|
|
|
|
|
for(;;) { |
|
|
|
@ -59,6 +60,8 @@ int main(int argc, char* argv[]) { |
|
|
|
|
|
|
|
|
|
if (result == -1) |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
anyParameterSet = true; |
|
|
|
|
const option* opt = &options[index]; |
|
|
|
|
UNUSED(opt); |
|
|
|
|
switch(result) { |
|
|
|
@ -127,6 +130,8 @@ int main(int argc, char* argv[]) { |
|
|
|
|
|
|
|
|
|
if (isatty(fileno(stdin)) || data.str().empty()) { |
|
|
|
|
std::cerr << "ERROR: no data from stdinput." << std::endl; |
|
|
|
|
if(!anyParameterSet) |
|
|
|
|
printHelp(); |
|
|
|
|
exit(1); |
|
|
|
|
} |
|
|
|
|
} else |
|
|
|
|