feat: Specify taskrc as cli option
In addition to task-data we also allow specifying the taskrc file on the command line.
This commit is contained in:
parent
3fded7315c
commit
c6f05d0b64
1 changed files with 5 additions and 1 deletions
6
topen.py
6
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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue