@@ -0,0 +1,781 @@
+package io.digdag.cli;%0A%0Aimport com.beust.jcommander.IParameterValidator;%0Aimport com.beust.jcommander.ParameterException;%0A%0Aimport java.util.HashMap;%0Aimport java.util.List;%0Aimport java.util.Map;%0A%0Apublic class ParameterValidator implements IParameterValidator%0A%7B%0A    public void validate(String name, String value) throws ParameterException%0A    %7B%0A        if (!value.contains(%22=%22)) %7B%0A            throw new ParameterException(%22Parameter %22 + name + %22 expected a value of the form a=b but got:%22 + value);%0A        %7D%0A    %7D%0A%0A    public static Map%3CString, String%3E toMap(List%3CString%3E list)%0A    %7B%0A        Map%3CString, String%3E map = new HashMap%3C%3E();%0A        list.forEach(value -%3E map.put(value.substring(0, value.indexOf(%22=%22)), value.substring(value.indexOf(%22=%22)+1)));%0A        return map;%0A    %7D%0A%7D%0A

Add parameter validator for digdag cli