More work on the new param system

This commit is contained in:
AlexandreRouma
2022-02-21 18:10:01 +01:00
parent a87aedabb8
commit 5c138aa4a5
4 changed files with 37 additions and 4 deletions

View File

@ -48,7 +48,6 @@ public:
}
CLIArg(char al, std::string desc, std::string s) {
printf("String const called\n");
alias = al;
description = desc;
type = CLI_ARG_TYPE_STRING;
@ -56,7 +55,6 @@ public:
}
CLIArg(char al, std::string desc, const char* s) {
printf("String const called\n");
alias = al;
description = desc;
type = CLI_ARG_TYPE_STRING;
@ -108,6 +106,8 @@ public:
aliases[shortName] = name;
}
void defineAll();
template<class T>
void define(char shortName, std::string name, std::string desc, T defValue) {
args[name] = CLIArg(shortName, desc, defValue);