pri: Check for existing priority and adapt message.
The existing check (as with depri) didn't do much good. Instead, fetch the existing priority and use that information to print more specific messages: - TODO: 42 re-prioritized from (C) to (A) - TODO: 42 already prioritized (A)
This commit is contained in:
committed by
Gina Trapani
parent
6e740f748e
commit
32c84781d2
@@ -55,7 +55,7 @@ TODO: 3 of 3 tasks shown
|
||||
|
||||
>>> todo.sh pri 2 A
|
||||
2 (A) notice the sunflowers
|
||||
TODO: 2 prioritized (A).
|
||||
TODO: 2 re-prioritized from (C) to (A).
|
||||
|
||||
>>> todo.sh -p list
|
||||
2 (A) notice the sunflowers
|
||||
@@ -66,7 +66,7 @@ TODO: 3 of 3 tasks shown
|
||||
|
||||
>>> todo.sh pri 2 a
|
||||
2 (A) notice the sunflowers
|
||||
TODO: 2 prioritized (A).
|
||||
TODO: 2 already prioritized (A).
|
||||
|
||||
>>> todo.sh -p listpri
|
||||
2 (A) notice the sunflowers
|
||||
|
||||
Reference in New Issue
Block a user