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

fix: disable greedy arrays #134

Merged
merged 1 commit into from
Mar 8, 2023
Merged

fix: disable greedy arrays #134

merged 1 commit into from
Mar 8, 2023

Conversation

hongaar
Copy link
Owner

@hongaar hongaar commented Mar 8, 2023

Previously, this would be ambiguous:

yarn moker add --template a b

Because the --template option accepts an array and would be populated with [a, b] leaving the name argument undefined. This is the default behaviour of yargs.

Setting the parserConfigurations greedy-arrays to false corrects this. To specify multiple templates, use:

yarn moker add --template a --template b c

@hongaar hongaar enabled auto-merge (squash) March 8, 2023 08:39
@hongaar hongaar merged commit 5f400f2 into main Mar 8, 2023
@hongaar hongaar deleted the fix/greedy-arrays branch March 8, 2023 08:41
hongaar pushed a commit that referenced this pull request Mar 8, 2023
## [0.11.3](v0.11.2...v0.11.3) (2023-03-08)

### Bug Fixes

* disable greedy arrays ([#134](#134)) ([5f400f2](5f400f2))

[skip ci]
@hongaar
Copy link
Owner Author

hongaar commented Mar 8, 2023

🎉 This PR is included in version 0.11.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

1 participant