Skip to content

How can i pass an arg which start with '-'? #2383

Open
@genru

Description

@genru

the command definition like mycmd <arg>,

when the argument is like "-xxx"(start with '-'), commander will always treat it as an option.

mycmd -anything

get error: unknown option -anything

mycmd -- -anything

same error.

Quotation marks won't help.

it seems commander.js is unable to handle such argument.

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