From 78e9e89b45e8f940f87ccaf7678cacab3d47fdcc Mon Sep 17 00:00:00 2001 From: tjp Date: Fri, 5 Jan 2024 12:18:36 -0700 Subject: m[ark] d[elete] --- command.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'command.go') diff --git a/command.go b/command.go index c3396b2..d6d896f 100644 --- a/command.go +++ b/command.go @@ -187,6 +187,14 @@ func parseMarkArgs(line string) ([]string, error) { } return fields, nil } + case 'd': + if strings.HasPrefix("delete", fields[0]) { + fields[0] = "delete" + if len(fields) != 2 { + return nil, ErrInvalidArgs + } + return fields, nil + } } if len(fields) != 1 { -- cgit v1.2.3