You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/CommandLine/Text/HelpText.cs
+41-13Lines changed: 41 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -266,7 +266,7 @@ public bool AdditionalNewLineAfterOption
266
266
/// </summary>
267
267
publicboolAddNewLineBetweenHelpSections
268
268
{
269
-
get{returnaddNewLineBetweenHelpSections;}
269
+
get{returnaddNewLineBetweenHelpSections;}
270
270
set{addNewLineBetweenHelpSections=value;}
271
271
}
272
272
@@ -389,7 +389,7 @@ public static HelpText AutoBuild<T>(
389
389
}
390
390
391
391
/// <summary>
392
-
/// Creates a new instance of the <see cref="CommandLine.Text.HelpText"/> class,
392
+
/// Creates a default instance of the <see cref="CommandLine.Text.HelpText"/> class,
393
393
/// automatically handling verbs or options scenario.
394
394
/// </summary>
395
395
/// <param name='parserResult'>The <see cref="CommandLine.ParserResult{T}"/> containing the instance that collected command line arguments parsed with <see cref="CommandLine.Parser"/> class.</param>
@@ -400,6 +400,23 @@ public static HelpText AutoBuild<T>(
400
400
/// <remarks>This feature is meant to be invoked automatically by the parser, setting the HelpWriter property
401
401
/// of <see cref="CommandLine.ParserSettings"/>.</remarks>
returnAutoBuild<T>(parserResult, h =>h,maxDisplayWidth);
405
+
}
406
+
407
+
/// <summary>
408
+
/// Creates a custom instance of the <see cref="CommandLine.Text.HelpText"/> class,
409
+
/// automatically handling verbs or options scenario.
410
+
/// </summary>
411
+
/// <param name='parserResult'>The <see cref="CommandLine.ParserResult{T}"/> containing the instance that collected command line arguments parsed with <see cref="CommandLine.Parser"/> class.</param>
412
+
/// <param name='onError'>A delegate used to customize the text block of reporting parsing errors text block.</param>
413
+
/// <param name="maxDisplayWidth">The maximum width of the display.</param>
414
+
/// <returns>
415
+
/// An instance of <see cref="CommandLine.Text.HelpText"/> class.
416
+
/// </returns>
417
+
/// <remarks>This feature is meant to be invoked automatically by the parser, setting the HelpWriter property
418
+
/// of <see cref="CommandLine.ParserSettings"/>.</remarks>
0 commit comments