From f13c3d6b498ffcc60d88d39072bdfb03050e474c Mon Sep 17 00:00:00 2001 From: ryansurf Date: Mon, 3 Jun 2024 10:20:15 -0700 Subject: [PATCH] map and forecast surf data --- src/cli.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/cli.py b/src/cli.py index 191fb91..8a4372c 100644 --- a/src/cli.py +++ b/src/cli.py @@ -15,12 +15,15 @@ gpt_info = [api_key, model] -def run(lat=0, long=0): +def run(lat=0, long=0, args=None): """ Main function """ # Seperates the cli args into a list - args = helper.seperate_args(sys.argv) + if args is None: + args = helper.seperate_args(sys.argv) + else: + args = helper.seperate_args(args) # return coordinates, lat, long, city location = api.seperate_args_and_get_location(args)