mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-14 08:25:01 +01:00
Disallow multiple files for --rustc
This commit is contained in:
parent
8fc0693cc3
commit
a866667545
1 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue