void printUsage( PrintStream out ) { out.println( argument() + spaceInBetweenArgumentAndUsage() + usage ); for ( String line : Args.splitLongLine( descriptionWithDefaultValue().replace( "`", "" ), 80 ) ) { out.println( "\t" + line ); } }
private static void printUsage( PrintStream out ) { out.println( "Neo4j Import Tool" ); for ( String line : Args.splitLongLine( "neo4j-import is used to create a new Neo4j database " + "from data in CSV files. " + "See the chapter \"Import Tool\" in the Neo4j Manual for details on the CSV file format " + "- a special kind of header is required.", 80 ) ) { out.println( "\t" + line ); } out.println( "Usage:" ); for ( Options option : Options.values() ) { option.printUsage( out ); } out.println( "Example:"); out.print( Strings.joinAsLines( TAB + "bin/neo4j-import --into retail.db --id-type string --nodes:Customer customers.csv ", TAB + "--nodes products.csv --nodes orders_header.csv,orders1.csv,orders2.csv ", TAB + "--relationships:CONTAINS order_details.csv ", TAB + "--relationships:ORDERED customer_orders_header.csv,orders1.csv,orders2.csv" ) ); }
void printUsage( PrintStream out ) { out.println( argument() + spaceInBetweenArgumentAndUsage() + usage ); for ( String line : Args.splitLongLine( descriptionWithDefaultValue().replace( "`", "" ), 80 ) ) { out.println( "\t" + line ); } }
private static void printUsage( PrintStream out ) { out.println( "Neo4j Import Tool" ); for ( String line : Args.splitLongLine( "neo4j-import is used to create a new Neo4j database " + "from data in CSV files. " + "See the chapter \"Import Tool\" in the Neo4j Manual for details on the CSV file format " + "- a special kind of header is required.", 80 ) ) { out.println( "\t" + line ); } out.println( "Usage:" ); for ( Options option : Options.values() ) { option.printUsage( out ); } out.println( "Example:"); out.print( Strings.joinAsLines( TAB + "bin/neo4j-import --into retail.db --id-type string --nodes:Customer customers.csv ", TAB + "--nodes products.csv --nodes orders_header.csv,orders1.csv,orders2.csv ", TAB + "--relationships:CONTAINS order_details.csv ", TAB + "--relationships:ORDERED customer_orders_header.csv,orders1.csv,orders2.csv" ) ); }
for ( String line : splitLongLine( fixDesciption( app.getDescription() ), CONSOLE_WIDTH ) ) String[] descriptionLines = splitLongLine( description, CONSOLE_WIDTH ); for ( int i = 0; i < descriptionLines.length; i++ )