refactor: Move from deprecated Arg::with_name

This commit is contained in:
Ed Page
2022-01-18 16:17:36 -06:00
parent 7934e06668
commit 372842aac6
5 changed files with 7 additions and 7 deletions

View File

@@ -12,7 +12,7 @@ pub fn make_app() -> App<'static> {
.about("A mdbook preprocessor which does precisely nothing")
.subcommand(
SubCommand::with_name("supports")
.arg(Arg::with_name("renderer").required(true))
.arg(Arg::new("renderer").required(true))
.about("Check whether a renderer is supported by this preprocessor"),
)
}