package kg.apc.cmdtools;

import java.io.PrintStream;
import java.util.ListIterator;

/**
 *
 * @author undera
 */
public abstract class AbstractCMDTool {

    public AbstractCMDTool() {
    }

    protected int getLogicValue(String string) {
        if (string.equalsIgnoreCase("on")) {
            return 1;
        }
        if (string.equalsIgnoreCase("1")) {
            return 1;
        }
        if (string.equalsIgnoreCase("yes")) {
            return 1;
        }
        return 0;
    }

    protected abstract int processParams(ListIterator args) throws UnsupportedOperationException, IllegalArgumentException;

    protected abstract void showHelp(PrintStream os);
}

@@ -459,32 +459,111 @@
 rn 1;%0A        %7D%0A
+        if (string.equalsIgnoreCase(%22true%22)) %7B%0A            return 1;%0A        %7D%0A
         return 0

fix issue 214