Add directory argument to `mdbook test`
This commit is contained in:
parent
436c084b9e
commit
b3665c287d
|
@ -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