private static Map<String, String> toMap(final String[] args) {
		final Map<String, String> props = new HashMap<>();
		for (int i = 1; i < args.length; i += 2) {
			props.put(args[i], i + 1 < args.length ? args[i + 1] : null);
		}

		return props;
	}
Command line version of the Evolving images example.
jenetics.example/src/main/java/io/jenetics/example/image/EvolvingImagesCmd.java