Skip to content

Command::propagate_version

since 0.1.0

Specifies to use the version of the current command for all subcommands.

name = "myprog"
version = "v1.1"
propagate-version = true
[[subcommands]]
name = "test"
Terminal window
prog test --version
Terminal window
myprog-test v1.1