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

Rework the replacements flag #267

Merged

Conversation

CosmicHorrorDev
Copy link
Collaborator

Fixes #105

The replacements flag was added since the last release, but there were some issues I wanted to resolve before actually releasing it. Notably this:

  • Reworks the whole CLI aspect
    • You can now also use the long flag --max-replacements <LIMIT>
    • Directly exposes that 0 indicates unlimited replacements
  • Honors the number of replacements even when using --preview
  • Adds a basic array of tests, so that the behavior is at least decently stable going forward

@CosmicHorrorDev CosmicHorrorDev merged commit 4f77cfe into chmln:master Nov 3, 2023
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

Successfully merging this pull request may close these issues.

Feature request: ability to exit after one replacement
1 participant