Add directory argument to `mdbook test`

This commit is contained in:
Matt Ickstadt 2018-08-01 17:59:40 -05:00
parent 436c084b9e
commit b3665c287d
1 changed files with 4 additions and 1 deletions

View File

@ -7,7 +7,10 @@ use mdbook::MDBook;
pub fn make_subcommand<'a, 'b>() -> App<'a, 'b> { pub fn make_subcommand<'a, 'b>() -> App<'a, 'b> {
SubCommand::with_name("test") SubCommand::with_name("test")
.about("Test that code samples compile") .about("Test that code samples compile")
.arg_from_usage("-L, --library-path [DIR]... 'directory to add to crate search path'") .arg_from_usage("-L, --library-path [DIR]... 'directories to add to crate search path'")
.arg_from_usage(
"[dir] 'A directory for your book{n}(Defaults to Current Directory when omitted)'",
)
} }
// test command implementation // test command implementation