remove unused param to arg parser
This commit is contained in:
@@ -75,13 +75,13 @@ void buildOpts(const argDef *argDefs, int &count, int &shortCharsCount, int &sho
|
||||
}
|
||||
}
|
||||
|
||||
static const argDef endArgDef = {nullptr, 0, nullptr, 0, nullptr, 0 };
|
||||
static const argDef helpArgDef = {"help", '?', nullptr, 0, "Give this help list", 0 };
|
||||
static const argDef endArgDef = {nullptr, 0, nullptr, 0, nullptr};
|
||||
static const argDef helpArgDef = {"help", '?', nullptr, 0, "Give this help list"};
|
||||
static const argDef helpArgDefs[] = {
|
||||
helpArgDef,
|
||||
endArgDef
|
||||
};
|
||||
static const argDef versionArgDef = {"version", 'V', nullptr, 0, "Print program version", 0 };
|
||||
static const argDef versionArgDef = {"version", 'V', nullptr, 0, "Print program version"};
|
||||
static const argDef versionArgDefs[] = {
|
||||
versionArgDef,
|
||||
endArgDef
|
||||
|
||||
@@ -37,7 +37,6 @@ typedef struct argDef {
|
||||
const char* valueName; //!< the optional argument value name
|
||||
int flags; //!< flags for the argument, bit combination of @a ArgFlag
|
||||
const char* help; //!< help text (mandatory)
|
||||
int unused; //!< currently unused (kept for compatibility to argp)
|
||||
} argDef;
|
||||
|
||||
struct argParseOpt;
|
||||
|
||||
Reference in New Issue
Block a user