Added warning for -r option plus file arg
This commit is contained in:
parent
c484e8e6e3
commit
be7de106c0
3
main.cpp
3
main.cpp
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user