about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2019-09-22 22:35:25 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2019-11-18 16:43:48 +0100
commit8f9014d98f88c57dbd786a3b9ac86c5bfcdcb401 (patch)
tree64cd241d31290cb5c2db2dd78e8ada820312c88b /src/tools
parent685b63a163e7a976ee3d304829647f4e22ed4071 (diff)
Rename rustdoc options --themes and --check-themes to --theme and --check-theme
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/rustdoc-themes/main.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tools/rustdoc-themes/main.rs b/src/tools/rustdoc-themes/main.rs
index fb0c9d7d4e0..87c1de3e715 100644
--- a/src/tools/rustdoc-themes/main.rs
+++ b/src/tools/rustdoc-themes/main.rs
@@ -38,9 +38,12 @@ fn main() {
         eprintln!("No theme found in \"{}\"...", themes_folder);
         exit(1);
     }
+    let arg_name = "--check-theme".to_owned();
     let status = Command::new(rustdoc_bin)
-                        .args(&["-Z", "unstable-options", "--check-themes"])
-                        .args(&themes)
+                        .args(&["-Z", "unstable-options"])
+                        .args(&themes.iter()
+                                     .flat_map(|t| vec![&arg_name, t].into_iter())
+                                     .collect::<Vec<_>>())
                         .status()
                         .expect("failed to execute child");
     if !status.success() {