Usage¶
The versionah script is the main workhorse of versionah
.
Let’s start with some basic examples:
$ versionah display _version.py # Read the version data from _version.py
2.4.3
$ versionah bump _version.py minor # Bump the minor component
2.5.0
$ versionah bump _version.py major # Bump the major component
3.0.0
$ versionah set _version.rb 0.2.0 # Set the version in _version.rb to 0.2.0
0.2.0
$ versionah bump _version.h minor # Bump the minor component in _version.h
0.4.0
Options¶
-
--version
¶
Show program’s version number and exit
-
-h
,
--help
¶
Show this help message and exit
Commands¶
bump
- Bump version in given file¶
-
-d
<format>
,
--display
=<format>
¶ Display output in
format
, whereformat
is one of the list of {date,dict,dotted,hex,libtool,tuple,web}
-
-t
<mode>
,
--type
=<mode>
¶ Define the file type used for version file. Default is guessed based on file extension.
-
--shtool
¶
Write shtool compatible output
set
- Set version in given file¶
-
-d
<format>
,
--display
=<format>
¶ Display output in
format
, whereformat
is one of the list of {date,dict,dotted,hex,libtool,tuple,web}
-
-n
<name>
,
--name
=<name>
¶ Project name to use in output
-
-t
<mode>
,
--type
=<mode>
¶ Define the file type used for version file. Default is guessed based on file extension.