main: emit json even if there are file limitations

closes #53
This commit is contained in:
William Ballenthin
2020-06-29 12:06:31 -06:00
parent 7d644fd86b
commit c5a718d5ba

View File

@@ -746,7 +746,7 @@ def main(argv=None):
if has_file_limitation(rules, capabilities):
# bail if capa encountered file limitation e.g. a packed binary
# do show the output in verbose mode, though.
if not (args.verbose or args.vverbose):
if not (args.verbose or args.vverbose or args.json):
return -1
# colorama will detect: