Strip content that is included in system library

This commit is contained in:
2023-08-31 16:10:19 +02:00
parent 7d6a6ee9b3
commit af4ec8898a
4 changed files with 34 additions and 0 deletions

View File

@@ -130,6 +130,7 @@ fn main() -> Result<(), Box<dyn Error>> {
outputfile,
compact,
sorted,
strip,
} => {
let data = &mut read_inputfile(inputfile)?;
@@ -144,6 +145,10 @@ fn main() -> Result<(), Box<dyn Error>> {
data.sorted();
}
if strip {
data.strip_system_library_content();
}
let mut buf = String::new();
let mut serializer = Serializer::new(&mut buf);