From c6f05d0b64cee53e91af8d368796ee58eff001e5 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sat, 5 Apr 2025 11:26:01 +0200 Subject: [PATCH] feat: Specify taskrc as cli option In addition to task-data we also allow specifying the taskrc file on the command line. --- topen.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/topen.py b/topen.py index 4f1721d..20fcdfc 100755 --- a/topen.py +++ b/topen.py @@ -92,12 +92,16 @@ you view the task. help="Annotation content to set within taskwarrior", ) _ = parser.add_argument("--editor", help="Program to open note files with") - _ = parser.add_argument("--task-data", help="Location of taskwarrior data") + _ = parser.add_argument("--task-rc", help="Location of taskwarrior config file") + _ = parser.add_argument( + "--task-data", help="Location of taskwarrior data directory" + ) p = parser.parse_args() return _filtered_dict( { "task_id": p.id, + "task_rc": p.task_rc, "task_data": p.task_data, "notes_dir": p.notes_dir, "notes_ext": p.extension,