cmdopts: Add a -?/--help option
This commit is contained in:
@@ -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[];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user