Skip to content

Add method to get help option description #1370

@Melissa0x1f992

Description

@Melissa0x1f992

Something like helpDescription()? And maybe when someone uses helpOption(..., 'custom description'), subsequent calls will return the new description?

Context: I'm using helpOption(false) to disable the implicit help because I have a non-console help output, and I'd rather not display help redundantly on the console. I use helpInformation() to get the help string in the action of my own '-h, --help' option. I'd like my help description to match commander's default help option description. My current options are just to hardcode a copy of your string, or access the _helpDescription field. I've opted for the former for now, but I'd rather not have a random copy of data when the intent was to refer to the already-existing data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions