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",
|
"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),
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue