AdaCore / AdaCore/gnatcoll-core

GNATCOLL.Opt_Parse has no concept of argument constraints

Open
#54 1 comment 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.