You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 28, 2021. It is now read-only.
There is code to handle std::optionalviaCLARA_CONFIG_OPTIONAL_TYPE; however Opt still is expecting an argument if none is given.
For example for logging: ./program, run with no logging (default), ./program -l enable logging, ./program -l file.log enable logging to named file.
This would make sense to use std::optional here.
For example, the default will not do anything; giving the "flag" -l will act like a pass the log through to std::clog; giving the optional with a filename -l /path/to/file.log will pass through to the /path/to/file.log.