diff --git a/parsedmarc/cli.py b/parsedmarc/cli.py index 09316b9..bd6e496 100644 --- a/parsedmarc/cli.py +++ b/parsedmarc/cli.py @@ -141,11 +141,11 @@ def _main(): help="append this suffix to the " "dmarc_aggregate and dmarc_forensic " "Elasticsearch index names, joined by _") - arg_parser.add_argument("--elasticsearch-use-ssl", default=False, action="store_true", - help="enable ssl connection to elasticsearch server") + arg_parser.add_argument("--elasticsearch-use-ssl", default=False, + action="store_true", + help="Use SSL when connecting to Elasticsearch") arg_parser.add_argument("--elasticsearch-ssl-cert-path", default=None, - help="if enabled ssl connection to elasticsearch" - "this is the path to the cert which validates the server") + help="Path to the Elasticsearch SSL certificate") arg_parser.add_argument("--hec", help="the URL to a Splunk HTTP Event " "Collector (HEC)") arg_parser.add_argument("--hec-token", help="the authorization token for " diff --git a/parsedmarc/elastic.py b/parsedmarc/elastic.py index 8ce4db9..2199005 100644 --- a/parsedmarc/elastic.py +++ b/parsedmarc/elastic.py @@ -172,9 +172,9 @@ def set_hosts(hosts, use_ssl=False, ssl_cert_path=None): Sets the Elasticsearch hosts to use Args: - hosts: A single hostname or URL, or list of hostnames or URLs - [use_ssl]: boolean, if True enables HTTPS connection to the server - [ssl_cert_path]: string, path to the certificate chain to validate the connection + hosts (str): A single hostname or URL, or list of hostnames or URLs + use_ssl (bool): Use a HTTPS connection to the server + ssl_cert_path (str): Path to the certificate chain """ if type(hosts) != list: hosts = [hosts]