added --only-files option to specify specific paths to scan