cmdopts: Add a -?/--help option

This commit is contained in:
2025-01-05 13:35:14 -04:00
parent 77a19deb8e
commit 00ce114d40
3 changed files with 15 additions and 7 deletions
+3 -3
View File
@@ -9,19 +9,19 @@
class OptionParser
{
public:
OptionParser() : verbose(false) {}
OptionParser() : verbose(false), printUsage(false) {}
~OptionParser() = default;
void parseArguments(int argc, char *argv[]);
void dumpOptions() const;
std::string getUsage() const;
private:
public:
std::vector<std::string> extro;
std::vector<std::string> intero;
std::vector<std::string> actuator;
std::string devFile;
bool verbose;
bool verbose, printUsage;
static struct option longOptions[];
};