public static void main(String[] args) {
        Properties properties = null;
        try {
            if (args.length == 1 && args[0].endsWith(".properties")) {
                properties = loadProperties(args[0]);
                new NatsBench(properties).start();
            } else {
                new NatsBench(args).start();
            }
        } catch (Exception e) {
            System.err.printf("Exiting due to exception [%s]\n", e.getMessage());
            e.printStackTrace();
            System.exit(-1);
        }
        System.exit(0);
    }
public static void main ( String [ ] args ) { Properties properties = null ; try { if ( args . length == 1 && args [ 0 ] . endsWith ( ".properties" ) ) { properties = loadProperties ( args [ 0 ] ) ; new NatsBench ( properties ) . start ( ) ; } else { new NatsBench ( args ) . start ( ) ; } } catch ( Exception e ) { System . err . printf ( "Exiting due to exception [%s]\n" , e . getMessage ( ) ) ; e . printStackTrace ( ) ; System . exit ( - 1 ) ; } System . exit ( 0 ) ; }
The main program executive.

@param args command line arguments