This commit is contained in:
Alexander Zhirov 2022-08-30 19:13:26 +03:00
parent 472ece92ec
commit 1c978ba183
1 changed files with 4 additions and 4 deletions

View File

@ -3,10 +3,10 @@
```cpp
int main(int argc, char *argv[])
{
Config cfg(error, false);
cfg.addKey('h', "hello", Config::NO);
cfg.addKey('m', "my", Config::OPTIONAL);
cfg.addKey('w', "world", Config::REQUIRED);
ArgPars cfg(error, false);
cfg.addKey('h', "hello", ArgPars::NO);
cfg.addKey('m', "my", ArgPars::OPTIONAL);
cfg.addKey('w', "world", ArgPars::REQUIRED);
cfg.readArguments(argc, argv);
if (cfg.checkKey('h'))