Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Express dependencies between fields via attributes (e.g. requires = "other_field") #14

Open
LukasKalbertodt opened this issue Oct 21, 2022 · 1 comment

Comments

@LukasKalbertodt
Copy link
Owner

This can be done in clap for example. Might be nice to express sth like that with attributes and have it checked automatically. However, it would increase the scope of this library considerably and it's straight forward to add such a check in your code afterwards.

@LukasKalbertodt
Copy link
Owner Author

This can be done with struct validation now, but of course that's not as nice as expressing dependencies as attributes directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant