HaveIBeenPwned / EmailAddressExtractor

A project to rapidly extract all email addresses from any files in a given path
BSD 3-Clause "New" or "Revised" License
68 stars 23 forks source link

Supress pre-scan summary when input is a single file #30

Closed troyhunt closed 1 year ago

troyhunt commented 1 year ago

We added the ability to scan a directory (and subdirectories) as some breaches contain multiple files. However, it's often only a single file so printing the summary of file types and sized is redundant and the scan should just begin immediately. For example, this is unnecessary

Found 1 files:
- .txt: 1 files : 44 bytes
Press ANY KEY to continue ['Q' to Quit; 'I' for info].
troyhunt commented 1 year ago

Scratch that, missed the "-y" arg 🤦‍♂️