I'm making a simple game with raylib and decided to use the command line for various settings (at least for now). I was originally parsing it myself, but I've decided to go with cxxopts to make the implementation cleaner.
I've noticed if I remove the default value for integers (tested with width and height), the value of the variables stays the same as the initial value (1280x720).
However! if I remove the default value for booleans (tested with vSync), the value becomes false even though the initial value was true.
I would like it to keep the initial value so that I don't have to have a bunch of string variables for my defaults.
Is this a bug or is there something in the API that is making it behave this way than I can change?
The version I'm using is the latest commit as of today (December 12th 2022): e9d20c2c078076da928288fdbae2a39431b4f253
I'm making a simple game with raylib and decided to use the command line for various settings (at least for now). I was originally parsing it myself, but I've decided to go with cxxopts to make the implementation cleaner.
I've noticed if I remove the default value for integers (tested with width and height), the value of the variables stays the same as the initial value (1280x720).
However! if I remove the default value for booleans (tested with vSync), the value becomes false even though the initial value was true.
I would like it to keep the initial value so that I don't have to have a bunch of string variables for my defaults.
Is this a bug or is there something in the API that is making it behave this way than I can change?
The version I'm using is the latest commit as of today (December 12th 2022): e9d20c2c078076da928288fdbae2a39431b4f253
Here's the relevant portion of code:
Thank you for this great library, and thank you in advance for helping me out!