diff options
author | Jan-Erik Rediger <janerik@fnordig.de> | 2019-07-16 12:18:42 +0200 |
---|---|---|
committer | Jan-Erik Rediger <janerik@fnordig.de> | 2019-07-16 12:18:42 +0200 |
commit | 79d21c15eb4a67eee28bcc8838e1a2890d7d943d (patch) | |
tree | cf44543cc858f6042d3a4e10d55f5d3609783a85 /src | |
parent | 5b343bd67c90cde529b8c534b4e64c6c78a48ae7 (diff) |
Include version
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/mdbook-mermaid.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/mdbook-mermaid.rs b/src/bin/mdbook-mermaid.rs index a26437b..331620c 100644 --- a/src/bin/mdbook-mermaid.rs +++ b/src/bin/mdbook-mermaid.rs @@ -3,7 +3,7 @@ extern crate mdbook; extern crate mdbook_mermaid; extern crate serde_json; -use clap::{App, Arg, ArgMatches, SubCommand}; +use clap::{crate_version, App, Arg, ArgMatches, SubCommand}; use mdbook::errors::Error; use mdbook::preprocess::{CmdPreprocessor, Preprocessor}; use mdbook_mermaid::Mermaid; @@ -13,6 +13,7 @@ use std::process; pub fn make_app() -> App<'static, 'static> { App::new("mdbook-mermaid") + .version(crate_version!()) .about("mdbook preprocessor to add mermaid support") .subcommand( SubCommand::with_name("supports") |