This commit is contained in:
Leonetienne 2021-06-04 02:43:38 +02:00
parent 2a9e2f2459
commit 8779514d3f

View File

@ -240,7 +240,7 @@ args.RegisterConstraints({pc});
What doesn't work is inserting multiple constraints for one key. It will just discard the oldest one. But that's okay because one can describe all possible constraints for a single key in **one** struct. What doesn't work is inserting multiple constraints for one key. It will just discard the oldest one. But that's okay because one can describe all possible constraints for a single key in **one** struct.
## Automatic parameter documentation ## Automatic parameter documentation
Hazelnupp does create an automatic parameter documentation accessible via `--help`. Hazelnupp does automatically create a parameter documentation, accessible via `--help`.
If you want to use `--help` yourself, just turn it off. If you want to use `--help` yourself, just turn it off.
```cpp ```cpp
Hazelnupp args; Hazelnupp args;
@ -281,7 +281,7 @@ Hazelnupp args;
args.SetBriefDescription("This is the testing application for Hazelnupp."); args.SetBriefDescription("This is the testing application for Hazelnupp.");
``` ```
If you want to display this information somewhere else, you can always access it via `args.GenerateDocumentation()`. If you want to display this information somewhere else, you can always access it as a string via `args.GenerateDocumentation()`.
## More examples? ## More examples?
Check out the unit tests! They may help you out! Check out the unit tests! They may help you out!