From aefc9a19121575c47c30d94203150b39bbcfa742 Mon Sep 17 00:00:00 2001 From: Ariadna Vigo Date: Thu, 1 Oct 2020 19:13:28 +0200 Subject: Documentation for delete mode --- README.md | 2 +- cras.1 | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ad7c61e..dfc929b 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ The -t and -T, followed by the task number, mark the task as done or pending, respectively. Adding new tasks to an already existing file is possible by using the -a -option. +option. Deleting tasks is performed by using the -d option. For further usage information, please refer to the cras(1) manual page. diff --git a/cras.1 b/cras.1 index f3940cb..c88136a 100644 --- a/cras.1 +++ b/cras.1 @@ -6,7 +6,7 @@ Cras - The Anti-Procrastination Tool .PP .B cras .RB [ \-anov ] -.RB [ \-tT +.RB [ \-dtT .IR num ] .I file .SH DESCRIPTION @@ -30,6 +30,11 @@ overwriting previous contents if it already exists. .B \-o Switch to short-form output. .TP +.BI \-d " num" +Delete task +.I +num. +.TP .BI \-t " num" Mark task .I num @@ -52,6 +57,8 @@ The newly created task list will be readable by Cras only up to the expiry date, which under the default configuration is 24 hours after originally saving it. Use -t to mark a task as done and -T to mark it back as pending. .PP +You may delete tasks by using the -d option followed by its identifying number. +.PP Running Cras with no options outputs the task list. For a summary, use the -o flag; this short-form output is suitable for printing to WM status bars. .SH ENVIRONMENT VARIABLES -- cgit v1.2.3