Skip to content

camelCase argument in command requires inferred alias #1246

@vasco-santos

Description

@vasco-santos

After yargs/yargs-parser/commit/08c011796f83e84fe50ffb066a87ae2effadfc75 got merged, commands using camelCase parameters were automatically inferred to have a dash case alias.

When we use this feature combined with using ... to optionally accept a list, throws an error Unknow argument, for instance in ipfs/js-ipfs/src/cli/commands/pin/ls.js#L7

In order to fix this, we have to set a dash-case option. This seems a bug with yargs-parser, as if it inferres other alias, it should be transparent to the users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions