*/
public static void checkArgs(String[] args, int min, int max, String cmd)
throws InsufficientArgumentsException {
if (args.length <= min) {
throw new InsufficientArgumentsException("Minimum " + min + " arguments");
} else if (max != -1 && args.length - 1 > max) {
throw new InsufficientArgumentsException("Maximum " + max + " arguments");
}
}