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 console --force overwrite with --split option #212

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

willibrandon
Copy link

Fixes #135

Hello. Thought I would take a stab at this one. Please let me know if you think anything else needs be done here.

@willibrandon
Copy link
Author

willibrandon commented Oct 24, 2023

Whoops, I see a problem here in the PDF save operation. I don't think I need to confirm overwrite during the PDF save operation since the overwrite confirmation has already been handled by that point.

/// <returns>The file path with substitutions.</returns>
[return: NotNullIfNotNull("filePath")]
public abstract string? Substitute(string? filePath, bool incrementIfExists = true, int numberSkip = 0,
int autoNumberDigits = 0);
int autoNumberDigits = 0, bool incrementPlaceholderIfExists = true);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather not make this logic more complicated - I think it should be possible to re-use the existing incrementIfExists parameter, we just need to double check the callers and make sure everything is going to behave as expected.

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.

Overwrite (--force) not working with --split option
2 participants