Improvements to `CliArgs`
Open
@PhilipFackler is already working on this.
Since May 6, 2026.
enhancement
- Dominant language
- C++
- Stars
- 27
- Forks
- 11
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 23
Description
Summary
My initial implementation of CliArgs was enough to used in the example application, but there are some improvements that should ideally be made (see #341). Here I list my ideas that I did not yet implement.
Description
- Use
std::anyinstead of string forArgValuerepresentation. Check against specified type when setting the value. Might be better to usestd::variantand limit possible input types. - Allow for positional arguments (
.name = {"pos"}) - Handle equal sign:
--opt=arg(currently flag and value must be space-separated)
Other ideas
- Introduce an
operator Tfunction inArgValueandArgVectorto allow implicit conversion
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.