Fix task adding and debug option printing
This commit is contained in:
parent
fcf3b791b4
commit
6ac8b5fd6f
2 changed files with 4 additions and 3 deletions
|
@ -72,7 +72,7 @@ def log_completed_to_taskwarrior(task_string, date, options):
|
|||
"task",
|
||||
*overrides,
|
||||
"log",
|
||||
f'"{task_string}"',
|
||||
task_string,
|
||||
f"entry:{date}",
|
||||
f"end:{date}",
|
||||
get_prio_string(task_string),
|
||||
|
@ -100,7 +100,7 @@ def add_incomplete_to_taskwarrior(task_string, date, options):
|
|||
"task",
|
||||
*overrides,
|
||||
"add",
|
||||
f'"{task_string}"',
|
||||
task_string,
|
||||
f"entry:{date}",
|
||||
f"scheduled:{date}",
|
||||
get_prio_string(task_string),
|
||||
|
|
|
@ -28,6 +28,7 @@ class Options:
|
|||
def init():
|
||||
opt = Options()
|
||||
parse_cmdline_args(opt)
|
||||
if opt.dryrun:
|
||||
dryrun_show_options(opt)
|
||||
return opt
|
||||
|
||||
|
|
Loading…
Reference in a new issue