Softhouse / jargo

Argument and options parser for java
Other
17 stars 0 forks source link

transform messes up the separator for asPropertyMap #45

Closed jontejj closed 6 years ago

jontejj commented 6 years ago

Arguments.stringArgument("-D").asPropertyMap().transform(map -> map.entrySet().stream().map(entry -> System.setProperty(entry.getKey(), entry.getValue()))).build()

Makes it look like -D=hello=world instead of -Dhello=world The keys on the map that is passed as map also contains -D= in the beginning of the key name.

jontejj commented 6 years ago

Fixed in the jontejj repo