diff --git a/dist/plan b/dist/plan index 4cda1eb..32aff8d 100755 Binary files a/dist/plan and b/dist/plan differ diff --git a/plan/command/delete.go b/plan/command/delete.go index fb73f13..294dd2f 100644 --- a/plan/command/delete.go +++ b/plan/command/delete.go @@ -2,6 +2,7 @@ package command import ( "fmt" + "slices" "strconv" ) @@ -14,7 +15,7 @@ func NewDeleteArgs() DeleteArgs { } func (da DeleteArgs) Parse(main []string, flags map[string]string) (Command, error) { - if len(main) < 2 || (main[0] != "delete" && main[0] != "done") { + if len(main) != 2 || !slices.Contains([]string{"d", "delete", "done"}, main[0]) { return nil, ErrWrongCommand }