refactor: Move from deprecated GlobalVersion

This commit is contained in:
Ed Page 2022-01-18 16:20:37 -06:00
parent 0c89293029
commit 1e1c99bbdb
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ fn create_clap_app() -> App<'static> {
.about(crate_description!()) .about(crate_description!())
.author("Mathieu David <mathieudavid@mathieudavid.org>") .author("Mathieu David <mathieudavid@mathieudavid.org>")
.version(VERSION) .version(VERSION)
.setting(AppSettings::GlobalVersion) .setting(AppSettings::PropagateVersion)
.setting(AppSettings::ArgRequiredElseHelp) .setting(AppSettings::ArgRequiredElseHelp)
.after_help( .after_help(
"For more information about a specific command, try `mdbook <command> --help`\n\ "For more information about a specific command, try `mdbook <command> --help`\n\