bump icon indicating copy to clipboard operation
bump copied to clipboard

cannot bump patch version with --patch

Open miki725 opened this issue 2 years ago • 1 comments

➜ bump --version
1.8.33

➜ bump --patch
💥version unchanged; specify major, minor, or patch

but running without any args does bump patch version. is this expected behavior?

miki725 avatar Aug 18 '23 12:08 miki725

I'm sorry to respond so late, but I overlooked this issue.

The behavior is expected because --patch is a toggle for the boolean patch argument, which defaults to true. It's not great behavior and we should probably handle a lack of arguments specifically; then --patch can serve a useful purpose and have parity with --minor and --major.

That said, I think we should leave the issue open until the behavior changes. Why not, right. You're probably not the first one to get tripped up by this.

disruptek avatar Feb 12 '24 16:02 disruptek