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?
Users can specify both key and value and I want to parse them as String.
However,
--opt key:trueis converted to{key1: true}instead of{key1: 'true'}.Can I force the type of the value to String?