public static void main ( String [ ] args ) { System . out . println ( version ) ; if ( args . length < 1 ) { // No arguments - lazily initialize readme, print readme and usage initReadme ( ) ; if ( readme != null ) { System . out . println ( readme ) ; } printUsage ( System . out ) ; return ; } // Last argument should be a path to the document root String name = args [ args . length - 1 ] ; // Analyze the rest of parameters for ( int i = 0 ; i < args . length - 1 ; i ++ ) { if ( "-R" . equalsIgnoreCase ( args [ i ] ) ) { recursive = true ; } else if ( "-C" . equalsIgnoreCase ( args [ i ] ) ) { doPatch = false ; } else { System . err . println ( "Unknown option passed: " + args [ i ] ) ; printUsage ( System . err ) ; return ; } } new JavadocFixTool ( ) . proceed ( name ) ; }
By default only look in the folder in parameter