Closed Zaulao closed 1 week ago
This change breaks the command line tool when --format
argument is used effectively muting the output, for example:
$ ./dnstwist.py --format csv github.com
If you need API to not print to standard output, use format='null'
as suggested in the documentation.
Avoid printing results to
stdout
when the tool is not being used as a CLI.When the tool is used as a lib, it prevents
stdout
from being written unnecessarily since the value is already returned at the end of the execution ofrun()
and can be handled appropriately by the function that started the execution.Before:
After: