Command::propagate_version
propagate_version
Section titled “propagate_version ”Specifies to use the version of the current command for all subcommands.
Example
Section titled “Example”name = "myprog"version = "v1.1"propagate-version = true[[subcommands]]name = "test"name: myprogversion: v1.1propagate-version: truesubcommands:- name: test{ "name": "myprog", "version": "v1.1", "propagate-version": true, "subcommands": [ { "name": "test" } ]}prog test --versionOutput
Section titled “Output”myprog-test v1.1