meow icon indicating copy to clipboard operation
meow copied to clipboard

String value converted to Num

Open rotexhawk opened this issue 1 year ago • 2 comments

Meow converts the string value '6.0' to the numeric value 6.

const minicli = meow({autoHelp: false, autoVersion: true, pkg, argv: gen}); const options = minicli.flags;

argV provided.

  '--flavor',              'default',
  '--runtime',             '6.0',

returned flags by meow.

flavor: default 
runtime: 6

rotexhawk avatar Dec 13 '23 16:12 rotexhawk

Define the types in the flags option.

sindresorhus avatar Dec 13 '23 17:12 sindresorhus

I can't change the code. That snippet it is from Yo package. Don't you think that regardless of the type it should not change "6.0" to "6"?

rotexhawk avatar Dec 13 '23 17:12 rotexhawk