Command line¶
Note
The documentation in this section is aimed at people wishing to contribute to
versionah
, and can be skipped if you are simply using the tool from the
command line.
-
class
versionah.
ValidatingAction
(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)[source]¶ argparse action to validate versionah input.
-
versionah.
guess_type
(filename)[source]¶ Guess output type from filename.
Parameters: filename (str) – File to operate on
-
versionah.
bump_version
(display_format, filename, file_type, shtool, bump)[source]¶ Bump version in existing file.
Parameters:
-
versionah.
set_version
(display_format, filename, file_type, name, version_str)[source]¶ Set version in new or existing file.
Parameters: