Fix task adding and debug option printing

This commit is contained in:
Marty Oehme 2021-10-31 17:34:49 +01:00
parent fcf3b791b4
commit 6ac8b5fd6f
Signed by: Marty
GPG key ID: B7538B8F50A1C800
2 changed files with 4 additions and 3 deletions

View file

@ -72,7 +72,7 @@ def log_completed_to_taskwarrior(task_string, date, options):
"task", "task",
*overrides, *overrides,
"log", "log",
f'"{task_string}"', task_string,
f"entry:{date}", f"entry:{date}",
f"end:{date}", f"end:{date}",
get_prio_string(task_string), get_prio_string(task_string),
@ -100,7 +100,7 @@ def add_incomplete_to_taskwarrior(task_string, date, options):
"task", "task",
*overrides, *overrides,
"add", "add",
f'"{task_string}"', task_string,
f"entry:{date}", f"entry:{date}",
f"scheduled:{date}", f"scheduled:{date}",
get_prio_string(task_string), get_prio_string(task_string),

View file

@ -28,6 +28,7 @@ class Options:
def init(): def init():
opt = Options() opt = Options()
parse_cmdline_args(opt) parse_cmdline_args(opt)
if opt.dryrun:
dryrun_show_options(opt) dryrun_show_options(opt)
return opt return opt