byronwatt / CmdLineOptions

yet another command line parser for c++
MIT License
1 stars 0 forks source link

use static class methods to wrap calls to singleton #1

Closed byronwatt closed 1 year ago

byronwatt commented 1 year ago

so that CmdLineOptions::instanceGet()->ParseOptions() is just CmdLineOptions::ParseOptions()

also what is the normal

byronwatt commented 1 year ago

aside:

This would probably fix the 87% coverage of:

https://app.codecov.io/gh/byronwatt/CmdLineOptions/blob/main/example/example_with_error_message.cpp

which looks kinda strange, but perhaps GetInstance is an inline function that has a branch for first/second time called ?