AdaCore / AdaCore/gnatcoll-core
GNATCOLL.Opt_Parse has no concept of argument constraints
Open
@raph-amiard is already working on this.
Since Jan 13, 2022.
- Dominant language
- Ada
- Stars
- 55
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
Description
That is, a "built in" way of specifying that if --foo is provided, --bar must also be given. Or --foo cannot be provided with --bar. And similar.
I'm happy to implement this myself and pull-request it, if such a thing is desirable. (Any thoughts on design and implementation of such a thing would be appreciated). I'd probably go with something similar to python's argparse groups - https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.add_mutually_exclusive_group
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.