-
Notifications
You must be signed in to change notification settings - Fork 418
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
Support Map fields (-Dkey1=val1 -Dkey2=val2) #67
Comments
Requires |
I see two ways to implement this:
The new API could look like this:
|
After prototyping this I don't like the complexity of the new type converter interface. I thought the added power might be a good trade-off for the complexity, but scenarios like #107 show how even more demanding use cases (combining multiple arguments into a single user-defined type) can be catered for without a complex API. (Making the Keeping the current ITypeConverter interface. Salvaged from the prototype:
|
+1 |
The prototype logic only handles input of the form More work is required in the parser, which is why this hasn't been integrated yet. |
IMO |
One idea is the change the
type
attribute so that it accepts multiple values. Then, application authors can annotate a Map field like this:and the application would be able to parse arguments like this:
The text was updated successfully, but these errors were encountered: