mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 23:30:03 +02:00
some checks for old command line style
Some checks failed
CMake / Configure and build using cmake (push) Failing after 10s
Some checks failed
CMake / Configure and build using cmake (push) Failing after 10s
This commit is contained in:
parent
8ec0d37cc6
commit
ec3cfc1138
@ -565,10 +565,17 @@ int main(int argc, char *argv[]) {
|
|||||||
case 'h':
|
case 'h':
|
||||||
std::cout << help_message << std::endl;
|
std::cout << help_message << std::endl;
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw sls::RuntimeError(help_message);
|
LOG(sls::logERROR) << help_message;
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// remaining arguments
|
||||||
|
if (optind < argc) {
|
||||||
|
LOG(sls::logERROR) << "Invalid arguments\n" << help_message;
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
LOG(sls::logINFOBLUE) << "Current Process [ Tid: " << gettid() << ']';
|
LOG(sls::logINFOBLUE) << "Current Process [ Tid: " << gettid() << ']';
|
||||||
LOG(sls::logINFO) << "Number of Receivers: " << numReceivers;
|
LOG(sls::logINFO) << "Number of Receivers: " << numReceivers;
|
||||||
|
@ -263,13 +263,17 @@ int main(int argc, char *argv[]) {
|
|||||||
case 'h':
|
case 'h':
|
||||||
std::cout << help_message << std::endl;
|
std::cout << help_message << std::endl;
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// maintain backward compatibility of [startport] [num-receivers]
|
LOG(sls::logERROR) << help_message;
|
||||||
// [callback]
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// if remaining arguments, maintain backward compatibility of [startport]
|
||||||
|
// [num-receivers] [callback]
|
||||||
|
if (optind < argc) {
|
||||||
GetDeprecatedCommandLineOptions(argc, argv, startPort, numReceivers,
|
GetDeprecatedCommandLineOptions(argc, argv, startPort, numReceivers,
|
||||||
callbackEnabled);
|
callbackEnabled);
|
||||||
throw sls::RuntimeError(help_message);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG(sls::logINFOBLUE) << "Current Process [ Tid: " << gettid() << ']';
|
LOG(sls::logINFOBLUE) << "Current Process [ Tid: " << gettid() << ']';
|
||||||
|
@ -79,10 +79,17 @@ int main(int argc, char *argv[]) {
|
|||||||
case 'h':
|
case 'h':
|
||||||
std::cout << help_message << std::endl;
|
std::cout << help_message << std::endl;
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw sls::RuntimeError(help_message);
|
LOG(sls::logERROR) << help_message;
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// remaining arguments
|
||||||
|
if (optind < argc) {
|
||||||
|
LOG(sls::logERROR) << "Invalid arguments\n" << help_message;
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
LOG(sls::logINFOBLUE) << "Current Process [ Tid: " << gettid() << " ]";
|
LOG(sls::logINFOBLUE) << "Current Process [ Tid: " << gettid() << " ]";
|
||||||
LOG(sls::logINFO) << "Port: " << port;
|
LOG(sls::logINFO) << "Port: " << port;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user