Currently, memefish fails unknown option key in some OPTIONS.
OPTIONS key can be added without notification, and it is even possible to have undocument options.
I think it is better to have "schema on read" semantics rather than "schema on write(parse)" semantics.
Validation should be the responsibility of semantic analysis phase.
Proposed characteristics
- Any key-value pairs can be parsed and unparsed.
- Known key-value can be accessed by named methods.
- It can be error if invalid value type, and the error can be handled.
- These are maintained on a best effort basis.
- Concrete options share underlying implementation as
GenericOptions.