From a0219004aa41eec037511a815a12a3f878dc538b Mon Sep 17 00:00:00 2001 From: Sean Whalen Date: Mon, 19 Mar 2018 12:17:17 -0400 Subject: [PATCH] Fix CLI args --- parsedmarc/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parsedmarc/cli.py b/parsedmarc/cli.py index 139e18b..0232082 100644 --- a/parsedmarc/cli.py +++ b/parsedmarc/cli.py @@ -53,12 +53,12 @@ def _main(): help="Delete the reports after processing them", action="store_true", default=False) - arg_parser.add_argument("-E", "--elasticsearch-hosts", nargs="*", + arg_parser.add_argument("-E", "--elasticsearch-host", nargs="*", help="A list of one or more Elasticsearch " "hostnames or URLs to use (Default " "localhost:9200)", default=["localhost:9200"]) - arg_parser.add_argument("-A", "--save-aggregate", action="store_true", + arg_parser.add_argument("--save-aggregate", action="store_true", default=False, help="Save aggregate reports to Elasticsearch") arg_parser.add_argument("--save-forensic", action="store_true", @@ -100,7 +100,7 @@ def _main(): exit(1) if args.save_aggregate or args.save_forensic: - elastic.set_hosts(args.elasticsearch_hosts) + elastic.set_hosts(args.elasticsearch_host) elastic.create_indexes() file_paths = []