diff --git a/xtask/src/command.rs b/xtask/src/command.rs index 42a5cac95e..6e91a527a2 100644 --- a/xtask/src/command.rs +++ b/xtask/src/command.rs @@ -290,9 +290,10 @@ impl<'a> CargoCommand<'a> { } } else { // If no argument given, run mdbook build + // with default path to book args.extend_from_slice(&[self.command()]); + args.extend_from_slice(&["book/en"]); } - args.extend_from_slice(&["book/en"]); args } CargoCommand::Format {