Added warning for -r option plus file arg

This commit is contained in:
Bob Polis 2021-10-05 14:29:12 +02:00
parent c484e8e6e3
commit be7de106c0

View File

@ -139,6 +139,9 @@ int main(int argc, const char * argv[]) {
try {
// process file argv[i]
saver = sc::plugin<ScreensaverPlugin>::get(argv[i])();
if (random_saver) {
std::cerr << "screensaver: warning: -r option overridden by file arg\n";
}
break; // only first one used
} catch (const std::runtime_error& ex) {
std::cerr << "screensaver: " << ex.what() << '\n';