Skip to content

Commit 5b2862c

Browse files
Add sentence to tell other options are ignored when running check-theme
1 parent 2aa57e9 commit 5b2862c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustdoc/config.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,12 +279,12 @@ impl Options {
279279
// check for deprecated options
280280
check_deprecated_options(&matches, &diag);
281281

282-
let to_check = matches.opt_strs("theme-checker");
282+
let to_check = matches.opt_strs("check-theme");
283283
if !to_check.is_empty() {
284284
let paths = theme::load_css_paths(static_files::themes::LIGHT.as_bytes());
285285
let mut errors = 0;
286286

287-
println!("rustdoc: [theme-checker] Starting tests!");
287+
println!("rustdoc: [check-theme] Starting tests! (Ignoring all other arguments)");
288288
for theme_file in to_check.iter() {
289289
print!(" - Checking \"{}\"...", theme_file);
290290
let (success, differences) = theme::test_theme_against(theme_file, &paths, &diag);
@@ -380,7 +380,7 @@ impl Options {
380380
default theme", theme_s))
381381
.warn("the theme may appear incorrect when loaded")
382382
.help(&format!("to see what rules are missing, call `rustdoc \
383-
--theme-checker \"{}\"`", theme_s))
383+
--check-theme \"{}\"`", theme_s))
384384
.emit();
385385
}
386386
themes.push(theme_file);

0 commit comments

Comments
 (0)