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)
4141 public bool HasDefaultValue => Argument . HasDefaultValue ;
4242
4343 /// <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>).
4546 /// </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>
4657 /// <value>
47- /// The name of the option when displayed in help .
58+ /// The name to show as the placeholder for the option's value .
4859 /// </value>
49- /// <remarks>Useful for localization, as it's not used for actual parsing.</remarks>
5060 public string ? HelpName
5161 {
5262 get => Argument . HelpName ;
You can’t perform that action at this time.
0 commit comments