Merge pull request #755 from mattico/test-dir
Add directory argument to `mdbook test`
This commit is contained in:
commit
b5fd170008
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue