diff options
author | Jan-Erik Rediger <janerik@fnordig.de> | 2022-05-26 22:54:02 +0200 |
---|---|---|
committer | Jan-Erik Rediger <janerik@fnordig.de> | 2022-05-26 22:56:12 +0200 |
commit | 2446499a7ebd4a880860477514fc3c071617c442 (patch) | |
tree | 3c5dda95d90e86a6fb8aac86287f7d7411d6ceaa /src | |
parent | 681231131766b04f8c5c7ff271e48b3f533a6330 (diff) |
Upgrade dependencies
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/mdbook-mermaid.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bin/mdbook-mermaid.rs b/src/bin/mdbook-mermaid.rs index dec9657..c79d69b 100644 --- a/src/bin/mdbook-mermaid.rs +++ b/src/bin/mdbook-mermaid.rs @@ -1,4 +1,4 @@ -use clap::{crate_version, App, Arg, ArgMatches, SubCommand}; +use clap::{crate_version, Arg, ArgMatches, Command}; use mdbook::errors::Error; use mdbook::preprocess::{CmdPreprocessor, Preprocessor}; use mdbook_mermaid::Mermaid; @@ -18,19 +18,19 @@ const MERMAID_FILES: &[(&str, &[u8])] = &[ ("mermaid-init.js", MERMAID_INIT_JS), ]; -pub fn make_app() -> App<'static, 'static> { - App::new("mdbook-mermaid") +pub fn make_app() -> Command<'static> { + Command::new("mdbook-mermaid") .version(crate_version!()) .about("mdbook preprocessor to add mermaid support") .subcommand( - SubCommand::with_name("supports") - .arg(Arg::with_name("renderer").required(true)) + Command::new("supports") + .arg(Arg::new("renderer").required(true)) .about("Check whether a renderer is supported by this preprocessor"), ) .subcommand( - SubCommand::with_name("install") + Command::new("install") .arg( - Arg::with_name("dir") + Arg::new("dir") .default_value(".") .help("Root directory for the book,\nshould contain the configuration file (`book.toml`)") ) |