Commit 43163f4f authored by Jacek Sowiński's avatar Jacek Sowiński

Print todo identifiers on output of 'pri'

parent 02e1bfd8
......@@ -15,6 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from topydo.lib.Command import Command, InvalidCommandArgument
from topydo.lib.PrettyPrinterFilter import PrettyPrinterNumbers
from topydo.lib.TodoListBase import InvalidTodoException
from topydo.lib.Utils import is_valid_priority
......@@ -36,6 +37,8 @@ class PriorityCommand(Command):
numbers = self.args[:-1]
priority = self.args[-1]
self.printer.add_filter(PrettyPrinterNumbers(self.todolist))
if len(numbers) > 0:
todos = [self.todolist.todo(number) for number in numbers]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment