From b01b6241cbe3d58393bde197c3550fe3f3872681 Mon Sep 17 00:00:00 2001 From: Kris Yotam Date: Sat, 21 Mar 2026 00:50:36 -0500 Subject: [PATCH] clarify that add text must be quoted in usage and man page --- stask.1 | 6 ++++-- stask.c | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/stask.1 b/stask.1 index 7b129dce3717763a5017373123c36e613355104d..c0a4306ed0b3d6d5ec19f3b8350e339ad954625a 100644 --- a/stask.1 +++ b/stask.1 @@ -22,7 +22,7 @@ stask \- simple task manager with markdown documents .B stask .I list .B add -.I text +.I \(dqtext\(dq .br .B stask .I list @@ -99,11 +99,13 @@ Show all tasks in displaying their done status, ID, title, and date. .SS Task Operations .TP -.IB list " add " text +.IB list " add " \(dqtext\(dq Add a new task to .I list with the given .IR text . +The text must be quoted if it contains spaces (e.g., +.BR """On the Modern Professor""" ). Creates a markdown document with YAML frontmatter at .IR ~/.local/share/stask/docs//.md . Prints the assigned task ID. diff --git a/stask.c b/stask.c index 654bfc9299425b84a21548178951d37a4e2919c0..af73edaa0cd4a6916e018c7da6c892961f108d82 100644 --- a/stask.c +++ b/stask.c @@ -17,7 +17,7 @@ usage(void) " stask new \n" " stask rm \n" " stask \n" - " stask add \n" + " stask add \"\"\n" " stask done \n" " stask undo \n" " stask del \n"