Add --generate-redirect-map option to replace HTML redirection file with a unique JSON map

This commit is contained in:
Guillaume Gomez
2021-01-20 20:56:47 +01:00
parent 15598a83db
commit 3a92f771b2
3 changed files with 60 additions and 12 deletions

View File

@@ -423,6 +423,13 @@ fn opts() -> Vec<RustcOptGroup> {
o.optopt("", "test-builder", "The rustc-like binary to use as the test builder", "PATH")
}),
unstable("check", |o| o.optflag("", "check", "Run rustdoc checks")),
unstable("generate-redirect-map", |o| {
o.optflag(
"",
"generate-redirect-map",
"Generate JSON file at the top level instead of generating HTML redirection files",
)
}),
]
}