public void printHelp ( final PrintWriter out ) { HelpFormatter hf = new HelpFormatter ( ) ; StringBuilder sbDivider = new StringBuilder ( "=" ) ; while ( sbDivider . length ( ) < hf . getPageWidth ( ) ) { sbDivider . append ( ' ' ) ; } out . println ( sbDivider . toString ( ) ) ; out . println ( "PLUGIN NAME : " + proxyedPluginDefinition . getName ( ) ) ; if ( description != null && description . trim ( ) . length ( ) != 0 ) { out . println ( sbDivider . toString ( ) ) ; out . println ( "Description : " ) ; out . println ( ) ; out . println ( description ) ; } hf . setGroup ( mainOptionsGroup ) ; // hf.setHeader(m_pluginDef.getName()); hf . setDivider ( sbDivider . toString ( ) ) ; hf . setPrintWriter ( out ) ; hf . print ( ) ; // hf.printHelp(m_pluginDef.getName(), m_Options); }
Prints the help related to the plugin to a specified output .