Merge pull request #755 from mattico/test-dir

Add directory argument to `mdbook test`
This commit is contained in:
Matt Ickstadt 2018-08-01 23:11:32 -05:00 committed by GitHub
commit b5fd170008
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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