if (args[1] != null) { if (args[1].equals("setdir")) { if (args[2] == null) { System.out.println("BatchMakeP12 setdir <dir>"); System.exit(1); } makep12.setMainStoreDir(args[2]); } else {  makep12.createUser(args[1]); }
if (args.length > 0) {  makep12.createUser(args[0]);
    public static void main(String[] args) {        try {            BasicConfigurator.configure();            BatchMakeP12 makep12 = new BatchMakeP12();            if (args[1] != null) {                if (args[1].equals("setdir"))                {                    if (args[2] == null) {                        System.out.println("BatchMakeP12 setdir <dir>");                        System.exit(1);                    }                    makep12.setMainStoreDir(args[2]);                }                else {                    // Make P12 for specified user                    makep12.createUser(args[1]);                }            } else {                // Make P12 for all NEW users in local DB                makep12.createAllNew();            }        } catch( Exception e ) {            e.printStackTrace();        }    } // main