Skip to content

GNATCOLL.Opt_Parse has no concept of argument constraints #54

Description

@LordAro

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions