From 98671f79165ef4306871f9cbec226da7e968dee3 Mon Sep 17 00:00:00 2001 From: Jeff Moe Date: Thu, 19 Sep 2024 19:35:14 -0600 Subject: [PATCH] Read csv file without -c --- hsparse/parse_csv_contacts.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/hsparse/parse_csv_contacts.py b/hsparse/parse_csv_contacts.py index 93d9481..7f93d37 100644 --- a/hsparse/parse_csv_contacts.py +++ b/hsparse/parse_csv_contacts.py @@ -11,13 +11,7 @@ import pandas as pd def parse_args(): parser = argparse.ArgumentParser(description="Parse Hubspot Contacts CSV Export") - parser.add_argument( - "-c", - "--csv", - help="Contacts CSV File", - type=str, - required=True, - ) + parser.add_argument("csv_file", help="Contacts CSV File", type=str) parser.add_argument( "-d", @@ -93,7 +87,7 @@ def csv_non_empty(CSV): def main(): args = parse_args() - CSV = args.csv + CSV = args.csv_file if args.dump: csv_dump(CSV)