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);