diff --git a/dissect/target/plugins/filesystem/yara.py b/dissect/target/plugins/filesystem/yara.py index 3fea9a285..8636127d0 100644 --- a/dissect/target/plugins/filesystem/yara.py +++ b/dissect/target/plugins/filesystem/yara.py @@ -45,7 +45,7 @@ def check_compatible(self) -> None: @arg("-r", "--rules", required=True, nargs="*", help="path(s) to YARA rule file(s) or folder(s)") @arg("-p", "--path", default="/", help="path on target(s) to recursively scan") - @arg("-m", "--max-size", default=DEFAULT_MAX_SCAN_SIZE, help="maximum file size in bytes to scan") + @arg("-m", "--max-size", type=int, default=DEFAULT_MAX_SCAN_SIZE, help="maximum file size in bytes to scan") @arg("-c", "--check", default=False, action="store_true", help="check if every YARA rule is valid") @export(record=YaraMatchRecord) def yara(