From d5e608d6665fb6b839dffa24c6000877c031747d Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sat, 29 Oct 2016 18:48:47 +0200 Subject: [PATCH] test --- src/main.cpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 83f7d0f..660314d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5,6 +5,7 @@ #include #include #include +#include "/usr/include/libusb-1.0/libusb.h" #include "classes/Keyboard.h" using namespace std; @@ -46,6 +47,33 @@ void usage() { cout< 1) { string argCmd = argv[1]; if (argCmd == "-h" || argCmd == "--help") { usage(); return 0; } + else if (argCmd == "list") { listKeyboards(); 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);