new feature no-clobber and fixed a bug: the original snprintf(x, ., ., x) modifies the string in-place and on my environment the string became blank #31
I'm gonna look into the bugfix to test it on my environment and provide a feedback.
On the new feature: interesting one. The desktop version of Caesium has a "Don't overwrite if the compressed it's bigger than the original", which is similar to the "no clobber".
I was also thinking: shouldn't we approach this feature the other way around? I mean, by default the application may not overwrite files and ask for permission, and I could introduce a "-f, --force" flag to skip the prompt. Additionally, I can add an alternative "overwrite only if smaller" flag, which will quietly overwrite only bigger source files and asks/skips others.
I'm gonna look into the bugfix to test it on my environment and provide a feedback.
On the new feature: interesting one. The desktop version of Caesium has a "Don't overwrite if the compressed it's bigger than the original", which is similar to the "no clobber". I was also thinking: shouldn't we approach this feature the other way around? I mean, by default the application may not overwrite files and ask for permission, and I could introduce a "-f, --force" flag to skip the prompt. Additionally, I can add an alternative "overwrite only if smaller" flag, which will quietly overwrite only bigger source files and asks/skips others.