Stabilize rustdoc theme options
This commit is contained in:
parent
9b0214d9c5
commit
add6204484
2 changed files with 5 additions and 3 deletions
|
@ -364,7 +364,9 @@ impl Options {
|
|||
.iter()
|
||||
.map(|s| (PathBuf::from(&s), s.to_owned())) {
|
||||
if !theme_file.is_file() {
|
||||
diag.struct_err("option --themes arguments must all be files").emit();
|
||||
diag.struct_err(&format!("invalid file: \"{}\"", theme_s))
|
||||
.help("option --themes arguments must all be files")
|
||||
.emit();
|
||||
return Err(1);
|
||||
}
|
||||
let (success, ret) = theme::test_theme_against(&theme_file, &paths, &diag);
|
||||
|
|
|
@ -251,12 +251,12 @@ fn opts() -> Vec<RustcOptGroup> {
|
|||
o.optflag("", "sort-modules-by-appearance", "sort modules by where they appear in the \
|
||||
program, rather than alphabetically")
|
||||
}),
|
||||
unstable("themes", |o| {
|
||||
stable("themes", |o| {
|
||||
o.optmulti("", "themes",
|
||||
"additional themes which will be added to the generated docs",
|
||||
"FILES")
|
||||
}),
|
||||
unstable("theme-checker", |o| {
|
||||
stable("theme-checker", |o| {
|
||||
o.optmulti("", "theme-checker",
|
||||
"check if given theme is valid",
|
||||
"FILES")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue