Read csv file without -c
This commit is contained in:
parent
e08dfc02f7
commit
98671f7916
|
@ -11,13 +11,7 @@ import pandas as pd
|
||||||
def parse_args():
|
def parse_args():
|
||||||
parser = argparse.ArgumentParser(description="Parse Hubspot Contacts CSV Export")
|
parser = argparse.ArgumentParser(description="Parse Hubspot Contacts CSV Export")
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument("csv_file", help="Contacts CSV File", type=str)
|
||||||
"-c",
|
|
||||||
"--csv",
|
|
||||||
help="Contacts CSV File",
|
|
||||||
type=str,
|
|
||||||
required=True,
|
|
||||||
)
|
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-d",
|
"-d",
|
||||||
|
@ -93,7 +87,7 @@ def csv_non_empty(CSV):
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
args = parse_args()
|
args = parse_args()
|
||||||
CSV = args.csv
|
CSV = args.csv_file
|
||||||
|
|
||||||
if args.dump:
|
if args.dump:
|
||||||
csv_dump(CSV)
|
csv_dump(CSV)
|
||||||
|
|
Loading…
Reference in a new issue