From 631f2b3c95b2e5b25215e207ddd7a06b5b81e31f Mon Sep 17 00:00:00 2001 From: MatMoul Date: Tue, 9 Aug 2016 21:40:09 +0200 Subject: [PATCH] Remove no commit features --- src/main.cpp | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 83f7d0f..04d69a8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -22,13 +22,13 @@ void usage() { cout<<" -a color :\t\tSet all keys\n"; cout<<" -g group, color :\tSet a group of keys\n"; cout<<" -k key, color :\tSet a key\n"; - cout<<"\n"; - cout<<" -an color :\t\tSet all keys without commit\n"; - cout<<" -gn group, color :\tSet a group of keys without commit\n"; - cout<<" -kn key, color :\tSet a key without commit\n"; - cout<<"\n"; - cout<<" -c :\t\t\tCommit changes\n"; - cout<<"\n"; + //cout<<"\n"; + //cout<<" -an color :\t\tSet all keys without commit\n"; + //cout<<" -gn group, color :\tSet a group of keys without commit\n"; + //cout<<" -kn key, color :\tSet a key without commit\n"; + //cout<<"\n"; + //cout<<" -c :\t\t\tCommit changes\n"; + //cout<<"\n"; cout<<" -p porfilefile :\tLoad a profile\n"; cout<<"\n"; cout<<" -h | --help :\t\tthis help message\n"; @@ -217,11 +217,14 @@ int main(int argc, char *argv[]) { if (argCmd == "-h" || argCmd == "--help") { usage(); return 0; } else if (argCmd == "-s" && argc == 3) return setStartupEffect(argv[2]); else if (argCmd == "-a" && argc == 3) return setAllKeys(argv[2], true); - else if (argCmd == "-an" && argc == 3) return setAllKeys(argv[2], false); + //else if (argCmd == "-an" && argc == 3) return setAllKeys(argv[2], false); + else if (argCmd == "-an" && argc == 3) return setAllKeys(argv[2], true); else if (argCmd == "-g" && argc == 4) return setGroupKeys(argv[2], argv[3], true); - else if (argCmd == "-gn" && argc == 4) return setGroupKeys(argv[2], argv[3], false); + //else if (argCmd == "-gn" && argc == 4) return setGroupKeys(argv[2], argv[3], false); + else if (argCmd == "-gn" && argc == 4) return setGroupKeys(argv[2], argv[3], true); else if (argCmd == "-k" && argc == 4) return setKey(argv[2], argv[3], true); - else if (argCmd == "-kn" && argc == 4) return setKey(argv[2], argv[3], false); + //else if (argCmd == "-kn" && argc == 4) return setKey(argv[2], argv[3], false); + else if (argCmd == "-kn" && argc == 4) return setKey(argv[2], argv[3], true); else if (argCmd == "-c" && argc == 2) return commit(); else if (argCmd == "-p" && argc == 3) return loadProfile(argv[2]); }