Split off dedicated tests for listpri.

Bonus: Fixed alignment of listpri help message.
This commit is contained in:
Ingo Karkat
2011-05-10 14:54:59 +02:00
parent 56bd927747
commit a830f18dd5
3 changed files with 33 additions and 3 deletions

View File

@@ -1016,7 +1016,7 @@ case $action in
## A priority was specified
pri=$( printf "%s\n" "$1" | tr 'a-z' 'A-Z' | grep '^[A-Z]$' ) || {
die "usage: $TODO_SH listpri PRIORITY
note: PRIORITY must a single letter from A to Z."
note: PRIORITY must a single letter from A to Z."
}
else
## No priority specified; show all priority tasks