public static void main( final String args[] ) {
        ForesterUtil.printProgramInformation( nhx_too.PRG_NAME, nhx_too.PRG_VERSION, nhx_too.PRG_DATE );
        if ( ( args.length < 3 ) || ( args.length > 3 ) ) {
            System.out.println();
            System.out.println( nhx_too.PRG_NAME + ": wrong number of arguments" );
            System.out.println();
            System.out.println( "Usage: \"" + nhx_too.PRG_NAME + " [options] <infile> <outfile>\n" );
            System.out.println( " Options: -" + nhx_too.INT_NODE_NAME_IS_SUPPORT
                    + ": internal node names are support values (i.e. MrBayes output)" );
            System.out.println();
            System.exit( -1 );
        }
        CommandLineArguments cla = null;
        try {
            cla = new CommandLineArguments( args );
        }
        catch ( final Exception e ) {
            ForesterUtil.fatalError( PRG_NAME, e.getMessage() );
        }
        final List<String> allowed_options = new ArrayList<String>();
        allowed_options.add( nhx_too.INT_NODE_NAME_IS_SUPPORT );
        final String dissallowed_options = cla.validateAllowedOptionsAsString( allowed_options );
        if ( dissallowed_options.length() > 0 ) {
            ForesterUtil.fatalError( nhx_too.PRG_NAME, "Unknown option(s): " + dissallowed_options );
        }
        final File phylogeny_infile = cla.getFile( 0 );
        final File phylogeny_outfile = cla.getFile( 1 );
        boolean int_node_name_is_support = false;
        if ( cla.isOptionSet( nhx_too.INT_NODE_NAME_IS_SUPPORT ) ) {
            int_node_name_is_support = true;
        }
        Phylogeny p = null;
        try {
            final PhylogenyFactory factory = ParserBasedPhylogenyFactory.getInstance();
            final PhylogenyParser pp = ForesterUtil.createParserDependingOnFileType( phylogeny_infile, true );
            p = factory.create( phylogeny_infile, pp )[ 0 ];
        }
        catch ( final Exception e ) {
            ForesterUtil.fatalError( nhx_too.PRG_NAME, "Could not read \"" + phylogeny_infile + "\" [" + e.getMessage()
                    + "]" );
        }
        if ( int_node_name_is_support ) {
            try {
                ForesterUtil.transferInternalNodeNamesToConfidence( p );
            }
            catch ( final Exception e ) {
                ForesterUtil.unexpectedFatalError( nhx_too.PRG_NAME,
                                                   "Failure during moving of internal names to support values ["
                                                           + e.getMessage() + "]" );
            }
        }
        try {
            final PhylogenyWriter w = new PhylogenyWriter();
            w.toNewHampshireX( p, phylogeny_outfile );
        }
        catch ( final IOException e ) {
            ForesterUtil.fatalError( nhx_too.PRG_NAME, "Failure to write output [" + e.getMessage() + "]" );
        }
        System.out.println();
        System.out.println( "Done [wrote \"" + phylogeny_outfile + "\"]." );
        System.out.println();
    }