sindresorhus / meow

🐈 CLI app helper
MIT License
3.53k stars 150 forks source link

String value converted to Num #249

Open rotexhawk opened 8 months ago

rotexhawk commented 8 months ago

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
sindresorhus commented 8 months ago

Define the types in the flags option.

rotexhawk commented 8 months ago

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"?