1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-27 19:42:53 +03:00

Don't accept files on the command line that don't do anything

This commit is contained in:
Peter Eckersley
2014-08-08 11:36:04 -07:00
parent 21ff3acf93
commit ff5810d78f

View File

@@ -150,7 +150,7 @@ def collect(mail_domain):
if __name__ == '__main__':
"""Consume a target list of domains and output a configuration file for those domains."""
if len(sys.argv) == 1:
if len(sys.argv) != 2: # XXX or accept multiple files as input
print("Usage: CheckSTARTTLS.py list-of-domains.txt > output.json")
config = collections.defaultdict(dict)