diff --git a/src/reclaim/commands/create-task.py b/src/reclaim/commands/create-task.py
index a2db7f4..feda94f 100644
--- a/src/reclaim/commands/create-task.py
+++ b/src/reclaim/commands/create-task.py
@@ -24,6 +24,14 @@ def parse_args(self, subparsers):
"title", type=str, metavar="
", help="title of the task"
)
+ subparser.add_argument(
+ "-n",
+ "--notes",
+ type=str,
+ metavar="",
+ help="notes/description for the task",
+ default=None,
+ )
subparser.add_argument(
"-d",
"--due",
@@ -87,6 +95,8 @@ def run(self, args):
task_args = {"title": args.title}
# Prepare optional arguments
+ if args.notes:
+ task_args["notes"] = args.notes
if args.due:
task_args["due"] = args.due
if args.snooze_until:
diff --git a/src/reclaim/commands/edit-task.py b/src/reclaim/commands/edit-task.py
index 80e5fad..9d79233 100644
--- a/src/reclaim/commands/edit-task.py
+++ b/src/reclaim/commands/edit-task.py
@@ -29,6 +29,14 @@ def parse_args(self, subparsers):
help="title of the task",
default=None,
)
+ subparser.add_argument(
+ "-n",
+ "--notes",
+ type=str,
+ metavar="",
+ help="notes/description for the task",
+ default=None,
+ )
subparser.add_argument(
"-d",
"--due",
@@ -92,6 +100,8 @@ def run(self, args):
if args.title:
task.title = args.title
+ if args.notes is not None:
+ task.notes = args.notes
if args.due:
task.due = args.due
if args.snooze_until:
diff --git a/src/reclaim/commands/show-task.py b/src/reclaim/commands/show-task.py
index 16b0f76..b8dbbdf 100644
--- a/src/reclaim/commands/show-task.py
+++ b/src/reclaim/commands/show-task.py
@@ -107,4 +107,8 @@ def format_date(date):
console = Console()
console.print(f"Task {tid}: {task.title}", style="bold underline")
console.print(grid)
+ if task.notes:
+ console.print()
+ console.print("Notes:", style="bold")
+ console.print(task.notes)
return task