Skip to content

Documentation for Option.HelpName inaccurate and mysterious #2594

Open
@elgonzo

Description

@elgonzo

/// <summary>
/// Gets or sets the name of the Option when displayed in help.
/// </summary>
/// <value>
/// The name of the option when displayed in help.
/// </value>
/// <remarks>Useful for localization, as it's not used for actual parsing.</remarks>
public string? HelpName
{
get => Argument.HelpName;
set => Argument.HelpName = value;
}

The documentation comments for Option.HelpName inaccurately state that it sets the name for the option for the help. That is not true, as it sets the (placeholder) name for the option argument; it doesn't alter the option name in the help.

Also, it features a mysterious remark "Useful for localization". How?

I'd like to submit a PR for this, rephrasing "name of the Option" to "name of the Option argument".

However, what about this "Useful for localization" remark? Is that a leftover from the older code base and can i remove this? Or is this something that will be addressed and become clear with the eventual proper release? Because as it currently stands, it's rather unclear what this remark is supposed to mean.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-APIbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions