Skip to content

Cannot name options/subcommands after commander public methods or JavaScript built-ins #19

@dobesv

Description

@dobesv

I tried to create a parameter with the long name 'password' and it didn't work out well, since that conflicts with the method password(). Same would go for 'action', 'option', and so on. Perhaps the parsed options could come back in a separate object? Or be able to assign an alias to those option names?

Workaround currently is to use a different long name so that it doesn't conflict with those.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions