Skip to content

Rework the replacements flag#267

Merged
CosmicHorrorDev merged 5 commits intochmln:masterfrom
CosmicHorrorDev:rework-replacements-flag
Nov 3, 2023
Merged

Rework the replacements flag#267
CosmicHorrorDev merged 5 commits intochmln:masterfrom
CosmicHorrorDev:rework-replacements-flag

Conversation

@CosmicHorrorDev
Copy link
Copy Markdown
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