Allow explicit setting of individual parts of the version number

Issue #2 on hold
Craig Phillips repo owner created an issue

Currently, it is only possible to explicitly set the entire version number, which must include all three parts of the version number (major, minor and patch).

It would be a nice addition to be able to explicitly set only a specific part of the version number - i.e. set the major part explicitly with a specific value, but leave the other parts alone but honour the resetting of lower significant parts of the version number to zero.

e.g. stampver -e MAJOR 3 should change a version number of 2.3.0 to 3.0.0

stampver -e MINOR 5 should change a version number of 2.3.6 to 2.5.0

Comments (3)

  1. Craig Phillips reporter

    Not sure of the usefulness of this feature. Seems that setting an explicit version number, especially across multiple files, is something that you'd want to be consistent - i.e. set all version numbers to 1.2.3 rather than just setting the minor version number to 2 when the major and build/patch versions could be different between different files.

    Will put this issue on hold until such a time as it seems worthwhile implementing (or not).

  2. Craig Phillips reporter

    Not sure of the usefulness of this feature. Seems that setting an explicit version number, especially across multiple files, is something that you'd want to be consistent - i.e. set all version numbers to 1.2.3 rather than just setting the minor version number to 2 when the major and build/patch versions could be different between different files. Will put this issue on hold until such a time as it seems worthwhile implementing (or not).

  3. Log in to comment