Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Provide map facade or factory to OptionSet #35
I'd like to get a Map<String, String> or Map<optionSpec, String> from OptionSet. I manually coded one, am unhappy with the unconverting back to string and the need to use non-obvious methods:
I provided Map<String, Option> to be more flexible for those wanting typed values, though I feel wasteful passing them through String.valueOf to put them back to strings.
I want to avoid stepping on other uses to satisfy my immediate need (integrating command line options with properties or property-like configuration).