From be7de106c0d241086c27d918e5e471b71240db3e Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Tue, 5 Oct 2021 14:29:12 +0200 Subject: [PATCH] Added warning for -r option plus file arg --- main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.cpp b/main.cpp index f7e1f0f..5d83d73 100644 --- a/main.cpp +++ b/main.cpp @@ -139,6 +139,9 @@ int main(int argc, const char * argv[]) { try { // process file argv[i] saver = sc::plugin::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';