private static int determineCommandNameWidth ( List < Command . Descriptor > descriptors ) { int max = 0 ; for ( Command . Descriptor d : descriptors ) { max = Math . max ( max , d . getName ( ) . length ( ) ) ; } return max ; }
Determine the maximum width of any configured command name