Skip to content

Command::long_version

since 0.1.0

Sets the version for the long version (--version) and help messages.

name = "myprog"
long-version = "v0.1.24 commit: abcdef89726d\nrevision: 123\nrelease: 2\nbinary: myprog"
[args]
Terminal window
myprog --version
Terminal window
myprog v0.1.24 commit: abcdef89726d
revision: 123
release: 2
binary: myprog