Command::long_version
long_version
Section titled “long_version ”Sets the version for the long version (--version
) and help messages.
Example
Section titled “Example”name = "myprog"long-version = "v0.1.24 commit: abcdef89726d\nrevision: 123\nrelease: 2\nbinary: myprog"[args]
name: myproglong-version: |- v0.1.24 commit: abcdef89726d revision: 123 release: 2 binary: myprogargs: {}
{ "name": "myprog", "long-version": "v0.1.24 commit: abcdef89726d\nrevision: 123\nrelease: 2\nbinary: myprog", "args": {}}
myprog --version
Output
Section titled “Output”myprog v0.1.24 commit: abcdef89726drevision: 123release: 2binary: myprog