mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-13 14:22:35 +00:00
env_logger
This commit is contained in:
parent
db11ff27f4
commit
4153db2624
2 changed files with 6 additions and 0 deletions
|
@ -20,6 +20,7 @@ handlebars = "0.20.0"
|
|||
rustc-serialize = "0.3.18"
|
||||
pulldown-cmark = "0.0.8"
|
||||
log = "0.3"
|
||||
env_logger = "0.3.4"
|
||||
|
||||
# Watch feature
|
||||
notify = { version = "2.5.5", optional = true }
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
extern crate mdbook;
|
||||
#[macro_use]
|
||||
extern crate clap;
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
extern crate env_logger;
|
||||
|
||||
// Dependencies for the Watch feature
|
||||
#[cfg(feature = "watch")]
|
||||
|
@ -38,6 +41,8 @@ use mdbook::MDBook;
|
|||
const NAME: &'static str = "mdbook";
|
||||
|
||||
fn main() {
|
||||
env_logger::init().unwrap();
|
||||
|
||||
// Create a list of valid arguments and sub-commands
|
||||
let matches = App::new(NAME)
|
||||
.about("Create a book in form of a static website from markdown files")
|
||||
|
|
Loading…
Reference in a new issue