Skip to main content

print_version

Function print_version 

Source
pub fn print_version(version_str: &str) -> !
Expand description

Print version_str to stdout and exit with code 0.

Call this when --version is detected. version_str is typically produced by jt_consoleutils::version::version_string(BUILD_DATE, GIT_HASH).

§Example

if raw.version {
    jt_consoleutils::help::print_version(&version::version_string());
}