Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String value converted to Num #249

Open
rotexhawk opened this issue Dec 13, 2023 · 2 comments
Open

String value converted to Num #249

rotexhawk opened this issue Dec 13, 2023 · 2 comments

Comments

@rotexhawk
Copy link

rotexhawk commented Dec 13, 2023

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
Copy link
Owner

Define the types in the flags option.

@rotexhawk
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants