Skip to content

Enable boolean flags parsing in CLI  #299

Description

@pvdlg

Currently the semicolon and prettier parsing by meow had to be disabled, as if they are not used by the user, meow set them to false and they override the configuration file.

So setting "semicolon": true or "prettier": true in the package.json is always overwritten and set to false.

Investigating it's related to to minimist which is used internally by meow. See https://github.com/substack/minimist/issues/94.

minimist doesn't seems to be maintained anymore and didn't received any commits for more than 2 years.

In order to solve this issue I see a couple solutions:

  • Replace meow by another arg parsing solution. In my experience yargs seems to be the most complete, reliable and maintained solution. Caporal.js seems promising as well.
  • Replace minimist inside meow by another solution. yargs-parser seems a good candidate.

@sindresorhus as you are also the author of meow, how would you prefer to address that issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions