protected void printUsage ( ) { List < Command . Descriptor > descriptors = project . getParent ( ) . getCommandDescriptors ( ) ; // out . println ( "usage: wy [--verbose] command [<options>] [<args>]" ) ; out . println ( ) ; int maxWidth = determineCommandNameWidth ( descriptors ) ; out . println ( "Commands:" ) ; for ( Command . Descriptor d : descriptors ) { out . print ( " " ) ; out . print ( rightPad ( d . getName ( ) , maxWidth ) ) ; out . println ( " " + d . getDescription ( ) ) ; } out . println ( ) ; out . println ( "Run `wy help COMMAND` for more information on a command" ) ; }
Print usage information to the console .