Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make help string of custom options better readable.
Lets say you support a custom option that reads a std::pair<int, float> with a default value. Then you use the function set_custom_option("INT FLOAT", 2) or something like this. This results in a help string that looks like "-p INT FLOAT=(1, 0.00000) x 2 Some text". This is highly confusing if you just want to use the program. This commit adds a flag to CLI::Option that can be set via set_custom_option that turn off all additions to the description. So set_custom_option("INT FLOAT", 2, true) results in something like "-p INT FLOAT Some text".
- Loading branch information