public static void executeCommand(String[] args) throws Exception {
        String subCmd = (args.length > 0) ? args[0] : "";
        args = AdminToolUtils.copyArrayCutFirst(args);
        if(subCmd.equals("fetch-entries")) {
            SubCommandStreamFetchEntries.executeCommand(args);
        } else if(subCmd.equals("fetch-keys")) {
            SubCommandStreamFetchKeys.executeCommand(args);
        } else if(subCmd.equals("mirror")) {
            SubCommandStreamMirror.executeCommand(args);
        } else if(subCmd.equals("update-entries")) {
            SubCommandStreamUpdateEntries.executeCommand(args);
        } else {
            printHelp(System.out);
        }
    }
public static void executeCommand ( String [ ] args ) throws Exception { String subCmd = ( args . length > 0 ) ? args [ 0 ] : "" ; args = AdminToolUtils . copyArrayCutFirst ( args ) ; if ( subCmd . equals ( "fetch-entries" ) ) { SubCommandStreamFetchEntries . executeCommand ( args ) ; } else if ( subCmd . equals ( "fetch-keys" ) ) { SubCommandStreamFetchKeys . executeCommand ( args ) ; } else if ( subCmd . equals ( "mirror" ) ) { SubCommandStreamMirror . executeCommand ( args ) ; } else if ( subCmd . equals ( "update-entries" ) ) { SubCommandStreamUpdateEntries . executeCommand ( args ) ; } else { printHelp ( System . out ) ; } }
Parses command-line and directs to sub-commands.

@param args Command-line input
@throws Exception