#include "help.h" #include #include "utils.h" using namespace std; namespace help { inline KeyboardFeatures operator|(KeyboardFeatures a, KeyboardFeatures b) { return static_cast(static_cast(a) | static_cast(b)); } KeyboardFeatures getKeyboardFeatures(string cmdName) { if(cmdName == "g213-led") return KeyboardFeatures::g213; else if(cmdName == "g410-led") return KeyboardFeatures::g410; else if(cmdName == "g413-led") return KeyboardFeatures::g413; else if(cmdName == "g610-led") return KeyboardFeatures::g610; else if(cmdName == "g810-led") return KeyboardFeatures::g810; else if(cmdName == "g910-led") return KeyboardFeatures::g910; else if(cmdName == "gpro-led") return KeyboardFeatures::gpro; return KeyboardFeatures::all; } void usage(char *arg0) { string cmdName = utils::getCmdName(arg0); KeyboardFeatures features = getKeyboardFeatures(cmdName); cout<