Skip to content

unknown "--option=value notation" value consumed as defaultOption #67

@75lb

Description

@75lb

This output from this example is incorrect.

> const commandLineArgs = require('command-line-args')
> const definitions = [ { name: 'file', type: String, defaultOption: true } ]
> commandLineArgs(definitions, { partial: true, argv: [ '--two=3' ] })
{ file: '3', _unknown: [ '--two' ] }

It should result in this output:

{ _unknown: [ '--two=3' ] }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions