If bump2version is used with both --current-version and --new-version (or only --new-version, but the current version can be retrieved from the config file) it seems like the part argument is not used at all, though it is required. Is this assumption correct?
Example:
bump2version --current-version 2.0.0 --new-version 2.1.0 major
(My assumption is, that this would result in a minor bump, going from 2.0.0 to 2.1.0 and ignoring the argument major.)
If the part argument is used by bump2version in those cases in any way, then it should be clarified how part affects the result.
If it is not used, then the user should have the option to omit part. If they decide to use part however, then bump2version should check for consistency. (E.g. Is this really a major/minor/patch bump?)
If bump2version is used with both
--current-version
and--new-version
(or only--new-version
, but the current version can be retrieved from the config file) it seems like thepart
argument is not used at all, though it is required. Is this assumption correct?Example:
(My assumption is, that this would result in a minor bump, going from 2.0.0 to 2.1.0 and ignoring the argument
major
.)If the
part
argument is used by bump2version in those cases in any way, then it should be clarified howpart
affects the result.If it is not used, then the user should have the option to omit
part
. If they decide to usepart
however, then bump2version should check for consistency. (E.g. Is this really a major/minor/patch bump?)