Remove deprecated dependencyVersions
This commit is contained in:
parent
497826f634
commit
04a8ef02d5
|
@ -433,10 +433,7 @@ const char *applicationVersion = nullptr;
|
||||||
/// \brief Specifies the URL to the application website (used by ArgumentParser::printHelp()).
|
/// \brief Specifies the URL to the application website (used by ArgumentParser::printHelp()).
|
||||||
const char *applicationUrl = nullptr;
|
const char *applicationUrl = nullptr;
|
||||||
/// \brief Specifies the dependency versions the application was linked against (used by ArgumentParser::printHelp()).
|
/// \brief Specifies the dependency versions the application was linked against (used by ArgumentParser::printHelp()).
|
||||||
/// \deprecated Not used anymore. Use dependencyVersions2 instead.
|
std::vector<const char *> dependencyVersions;
|
||||||
std::initializer_list<const char *> dependencyVersions;
|
|
||||||
/// \brief Specifies the dependency versions the application was linked against (used by ArgumentParser::printHelp()).
|
|
||||||
std::vector<const char *> dependencyVersions2;
|
|
||||||
|
|
||||||
// TODO v5 use a struct for these properties
|
// TODO v5 use a struct for these properties
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,7 @@ CPP_UTILITIES_EXPORT extern const char *applicationName;
|
||||||
CPP_UTILITIES_EXPORT extern const char *applicationAuthor;
|
CPP_UTILITIES_EXPORT extern const char *applicationAuthor;
|
||||||
CPP_UTILITIES_EXPORT extern const char *applicationVersion;
|
CPP_UTILITIES_EXPORT extern const char *applicationVersion;
|
||||||
CPP_UTILITIES_EXPORT extern const char *applicationUrl;
|
CPP_UTILITIES_EXPORT extern const char *applicationUrl;
|
||||||
CPP_UTILITIES_EXPORT extern std::initializer_list<const char *> dependencyVersions;
|
CPP_UTILITIES_EXPORT extern std::vector<const char *> dependencyVersions;
|
||||||
CPP_UTILITIES_EXPORT extern std::vector<const char *> dependencyVersions2;
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \def SET_DEPENDENCY_INFO
|
* \def SET_DEPENDENCY_INFO
|
||||||
|
@ -30,7 +29,7 @@ CPP_UTILITIES_EXPORT extern std::vector<const char *> dependencyVersions2;
|
||||||
* used by ArgumentParser::printHelp().
|
* used by ArgumentParser::printHelp().
|
||||||
* \remarks Reads those data from the config header so "config.h" must be included.
|
* \remarks Reads those data from the config header so "config.h" must be included.
|
||||||
*/
|
*/
|
||||||
#define SET_DEPENDENCY_INFO ::ApplicationUtilities::dependencyVersions2 = DEPENCENCY_VERSIONS
|
#define SET_DEPENDENCY_INFO ::ApplicationUtilities::dependencyVersions = DEPENCENCY_VERSIONS
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \def SET_APPLICATION_INFO
|
* \def SET_APPLICATION_INFO
|
||||||
|
|
|
@ -769,7 +769,7 @@ void ArgumentParserTests::testHelp()
|
||||||
envArg.appendValueName("file");
|
envArg.appendValueName("file");
|
||||||
parser.helpArg().setRequired(true);
|
parser.helpArg().setRequired(true);
|
||||||
parser.setMainArguments({ &verboseArg, &filesArg, &envArg, &parser.noColorArg(), &parser.helpArg() });
|
parser.setMainArguments({ &verboseArg, &filesArg, &envArg, &parser.noColorArg(), &parser.helpArg() });
|
||||||
dependencyVersions2 = { "somelib", "some other lib" };
|
dependencyVersions = { "somelib", "some other lib" };
|
||||||
|
|
||||||
// parse args and assert output
|
// parse args and assert output
|
||||||
const char *const argv[] = { "app", "-h" };
|
const char *const argv[] = { "app", "-h" };
|
||||||
|
|
Loading…
Reference in New Issue