Skip to content

defaultValue for type Array null #24

@Townsheriff

Description

@Townsheriff

Fails to parse command line if defaultValue is null and type is String and multiple is true.

Using following options:

    {
        name: 'tags',
        alias: 't',
        type: String,
        multiple: true,
        defaultValue: null
    },

If --tags array values are provided in CLI then it parses them incorrectly. Last string is split in array of chars and everything else is ignored.

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