private int getOption(String[] args, String textToFileter) {
        if (args.length > 1) {
            if (args[1].length() < 3) return 0;
            String option = args[1].substring(2);
            try {
                boolean startsWithTextToFilter = args[1].toLowerCase().startsWith(textToFileter);
                if (args.length == 2)
                    return (startsWithTextToFilter) ? Integer.parseInt(option) : 0;
                if (args.length > 2) {
                    if (startsWithTextToFilter) {
                        return Integer.parseInt(option);
                    }
                    option = args[2].substring(2);
                    return (args[2].toLowerCase().startsWith(textToFileter)) ? Integer.parseInt(option) : 0;
                }
            } catch (NumberFormatException e) {
                System.err.println("Please Give Valid Number Input");
                System.exit(1);
            }
        }
        return 0;
    }