@@ -408,7 +408,7 @@ private static string GetEnumHelpPage()
408408 private static string GetMethodList ( )
409409 {
410410 var methods = MethodIndex . GetMethods ( ) ;
411- const string retsPrefix = " [rets]" ;
411+ const string retsSuffix = " [rets]" ;
412412
413413 Dictionary < string , List < Method > > methodsByCategory = new ( ) ;
414414 foreach ( var method in methods )
@@ -430,7 +430,7 @@ private static string GetMethodList()
430430 foreach ( var kvp in methodsByCategory . Reverse ( ) )
431431 {
432432 var descDistance = kvp . Value
433- . Select ( m => m . Name . Length + ( m is ReturningMethod ? retsPrefix . Length : 0 ) )
433+ . Select ( m => m . Name . Length + ( m is ReturningMethod ? retsSuffix . Length : 0 ) )
434434 . Max ( ) + 1 ;
435435
436436 sb . AppendLine ( ) ;
@@ -440,14 +440,11 @@ private static string GetMethodList()
440440 var name = method . Name ;
441441 if ( method is ReturningMethod )
442442 {
443- name += " [rets]" ;
443+ name += retsSuffix ;
444444 }
445445
446- var descDistanceString = new string ( ' ' , descDistance - name . Length ) ;
447- var desc = method . Description
448- ?? $ "Extracts information from { ( ( IReferenceResolvingMethod ) method ) . ResolvesReference . Name } objects.";
449-
450- sb . AppendLine ( $ "> { name } { descDistanceString } ~ { desc } ") ;
446+ var descPadding = new string ( ' ' , descDistance - name . Length ) ;
447+ sb . AppendLine ( $ "> { name } { descPadding } ~ { method . Description } ") ;
451448 }
452449 }
453450
@@ -569,7 +566,7 @@ private static string GetMethodHelp(Method method)
569566
570567 if ( argument . DefaultValue is { } defVal )
571568 {
572- sb . AppendLine ( $ " - Default value: { defVal . StringRep ?? defVal . Value ? . ToString ( ) ?? "unknown" } ") ;
569+ sb . AppendLine ( $ " - Default value/behavior : { defVal . StringRep ?? defVal . Value ? . ToString ( ) ?? "unknown" } ") ;
573570 }
574571
575572 if ( argument . ConsumesRemainingValues )
0 commit comments