@@ -0,0 +1,1305 @@
+package voldemort.utils;%0A%0Aimport java.util.HashSet;%0Aimport java.util.Set;%0A%0Aimport joptsimple.OptionSet;%0Aimport joptsimple.OptionSpec;%0A%0A/**%0A * Helper functions for command line parsing. Because jopt-simple is a little%0A * too simple.%0A * %0A * @author jay%0A * %0A */%0Apublic class CmdUtils %7B%0A%0A    public static Set%3CString%3E missing(OptionSet options, String... required) %7B%0A        Set%3CString%3E missing = new HashSet%3CString%3E();%0A        for(String arg: required)%0A            if(!options.has(arg))%0A                missing.add(arg);%0A        return missing;%0A    %7D%0A%0A    public static Set%3COptionSpec%3C?%3E%3E missing(OptionSet options, OptionSpec%3C?%3E... required) %7B%0A        Set%3COptionSpec%3C?%3E%3E missing = new HashSet%3COptionSpec%3C?%3E%3E();%0A        for(OptionSpec%3C?%3E opt: required)%0A            if(!options.has(opt))%0A                missing.add(opt);%0A        return missing;%0A    %7D%0A%0A    @SuppressWarnings(%22unchecked%22)%0A    public static %3CT%3E T valueOf(OptionSet options, String opt, T defaultValue) %7B%0A        if(options.has(opt))%0A            return (T) options.valueOf(opt);%0A        else%0A            return defaultValue;%0A    %7D%0A%0A    public static %3CT%3E T valueOf(OptionSet options, OptionSpec%3CT%3E opt, T defaultValue) %7B%0A        if(options.has(opt))%0A            return options.valueOf(opt);%0A        else%0A            return defaultValue;%0A    %7D%0A%0A%7D%0A

Add proper command line options to store builder.