File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -41,12 +41,22 @@ protected Option(string name, string[] aliases) : base(name)
41
41
public bool HasDefaultValue => Argument . HasDefaultValue ;
42
42
43
43
/// <summary>
44
- /// Gets or sets the name of the Option when displayed in help.
44
+ /// Gets or sets the placeholder name shown in usage help for the option's value.
45
+ /// The value will be wrapped in angle brackets (<c><</c> and <c>></c>).
45
46
/// </summary>
47
+ /// <remarks>
48
+ /// If <c>null</c>, the <see cref="Symbol.Name"/> of the option will be used,
49
+ /// with leading dashes and slashes removed.
50
+ /// </remarks>
51
+ /// <example>
52
+ /// An option with <see cref="Symbol.Name"/> of <c>--option</c> and a
53
+ /// <see cref="HelpName"/> of <c>Value</c> will be shown in usage help as:
54
+ /// <c>--option <Value></c>. If <see cref="HelpName"/> is not set,
55
+ /// help output will show: <c>--option <option></c>.
56
+ /// </example>
46
57
/// <value>
47
- /// The name of the option when displayed in help .
58
+ /// The name to show as the placeholder for the option's value .
48
59
/// </value>
49
- /// <remarks>Useful for localization, as it's not used for actual parsing.</remarks>
50
60
public string ? HelpName
51
61
{
52
62
get => Argument . HelpName ;
You can’t perform that action at this time.
0 commit comments