summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriadna Vigo <arivigodr@gmail.com>2020-10-01 19:13:28 +0200
committerAriadna Vigo <arivigodr@gmail.com>2020-10-01 19:13:28 +0200
commitaefc9a19121575c47c30d94203150b39bbcfa742 (patch)
tree64ac95c45622203123df6d8bc557d914b506ca97
parentef8434915ce88c1dbaef9e778e059a21a998398a (diff)
Documentation for delete mode
-rw-r--r--README.md2
-rw-r--r--cras.19
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