-
Notifications
You must be signed in to change notification settings - Fork 0
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
Handling of config structs with tagged struct fields #2
Comments
4 tasks
IIUC this issue is about adding a prefix to nested flags, correct? For example, these structs:
... would result in the flag |
@lovromazgon Yes, that's one of the options. Another is to just disallow that usage at all. My intention with this issue is to clarify which do we want to use and be consistent with that. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ecdysis makes it possible to build flags from a struct, and in #1 we added support for parsing nested structs. We found that the following case is possible and needs to be properly handled:
Nested structs are not flags on their own, they are merely a way to group flags. The goal of this issue is to clarify the usage of tags on nested structs (we can either forbid them, or allow them if we have a way to describe groups of flags).
The text was updated successfully, but these errors were encountered: