8000 Conveniency about parameter "argsDescription" in program.description() · Issue #1321 · tj/commander.js · GitHub
[go: up one dir, main page]

Skip to content
Conveniency about parameter "argsDescription" in program.description() #1321
@ltccss

Description

@ltccss

In my case, some arguments of a command are not necessary to describe, but currently I have to write all descriptions of them to avoid the null reference error.

I think it may be more pleasant to make a null check for "argsDescription[arg.name]" here?

desc.push(' ' + pad(arg.name, width) + ' ' + wrap(argsDescription[arg.name], descriptionWidth, width + 4));

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0