bump2version icon indicating copy to clipboard operation
bump2version copied to clipboard

make --dry-run --verbose the default behavior

Open kmike opened this issue 4 years ago • 2 comments

Hey! Usually when someone uses bump2version, they need to run --dry-run --verbose first - at least that's my experience. You may want to run it a few times as well, to get the right output.

I think usability of the tool can be improved, and some of the user mistakes prevented, if this mode becomes the default, and it is application of the changes which starts to require more effort, not dry run. To apply changes there could be a separate command, an option, maybe an interactive prompt after showing what's going to be changed.

Backwards compatibility is an issue, but there could be ways to overcome it.

kmike avatar Apr 21 '21 16:04 kmike

This is an interesting idea.

On the other hand, lots of users run bump2version from a script or a CI pipeline, so backwards compatibility will be a huge deal breaker. We can't risk breaking people's workflow.

It's not impossible to add a flag in the config file dry-run-by-default. But I'm not sure it's worth it.

Personally, I run --dry-run a couple of times (10?) until the config is working. After that, I typically don't need it anymore.

florisla avatar May 12 '21 22:05 florisla

I typically use --verbose --dry-run at least once before removing the --dry-run flag. Just to make sure I'm bumping the correct part. In the past I was also able to spot incorrect bumps by looking at the diff, but that has stopped working (#215)

jaap3 avatar Aug 26 '21 08:08 jaap3