Skip to content

Question: how to specify key-value type #17

@teppeis

Description

@teppeis

Users can specify both key and value and I want to parse them as String.

{
  option: 'opt',
  type: 'Object'
}
$ command --opt key1:value1
{ opt: {key1: 'value1'}, _: [] }

However, --opt key:true is converted to {key1: true} instead of {key1: 'true'}.
Can I force the type of the value to String?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions