Disallow multiple files for --rustc

This commit is contained in:
nora 2022-12-21 19:40:12 +01:00
parent 8fc0693cc3
commit a866667545

View file

@ -75,6 +75,10 @@ impl Minimizer {
bail!("Did not find any files for path {}", path.display());
}
if options.rustc && files.len() > 1 {
bail!("Found more than one file. --rustc only works with a single file.");
}
Ok(Self {
files,
build,