summaryrefslogtreecommitdiff
path: root/src/worklog
diff options
context:
space:
mode:
Diffstat (limited to 'src/worklog')
-rwxr-xr-xsrc/worklog8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/worklog b/src/worklog
index 2b4dca8..b981201 100755
--- a/src/worklog
+++ b/src/worklog
@@ -13,10 +13,13 @@ import os
import os.path as osp
import logging
import paths_util_worklogger as pu
-from funcs_worklogger import configure, add_log, arg_convert
+from funcs_worklogger import configure, add_log
from args_worklogger import parser
from pathlib import Path
from log_util_worklogger import logger, setup_logging
+from typing import Optional
+
+from pprint import pprint
SAVEPATH: Path | str
@@ -30,6 +33,8 @@ formats: dict = {
# creates a NameSpace of arguments that were made
args = parser.parse_args()
+pprint(args)
+sys.exit()
if args.configure:
configure(dir_list=None)
@@ -141,6 +146,7 @@ except Exception as e:
logger.exception(str(e))
if settings is not None:
+
add_log(file_format=formats[str(
settings['fileformat']).upper()], proj_settings=jname_proj, savepath=SAVEPATH, backuppath=BACKUPPATH, job=args.job, proj=args.project,
loc=args.location, time=args.time, start=args.start, end=args.end, message=args.message)