At the moment, we use FromStr implementations for parsing the codegen and JS runtime option groups (see this example). We could implement a custom value parser and use a ValueParserFactory to parse these two option groups instead.
What problem does it solve?
We could detect duplicate keys and raise an error and possibly output more useful helpful messages.
What is the idea?
At the moment, we use
FromStr
implementations for parsing the codegen and JS runtime option groups (see this example). We could implement a custom value parser and use aValueParserFactory
to parse these two option groups instead.What problem does it solve?
We could detect duplicate keys and raise an error and possibly output more useful helpful messages.