From bb73b7b8b2005631ae6e2ba17bbbd029e833f8e1 Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Fri, 11 Sep 2015 14:29:29 -0400 Subject: [PATCH] require mode to be set every time --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 46f41e7..d16d64e 100644 --- a/main.cpp +++ b/main.cpp @@ -183,8 +183,8 @@ Example: } } - if(!keyboardOptions.modeSet && !keyboardOptions.colorSet) { - std::cerr << "Please set an option to change, either the mode or color. Both can be specified, as well as multiple color options (one for each region)" << std::endl; + if(!keyboardOptions.modeSet || !keyboardOptions.colorSet) { + std::cerr << "Please set a mode as well as at least one color region to change." << std::endl; return 1; }else{ Keyboard k;