From 69a045c203d8d6c6acda989fe825633381c721d1 Mon Sep 17 00:00:00 2001 From: Fabien Benureau Date: Thu, 22 Jan 2015 04:06:03 +0100 Subject: [PATCH] remove more verbose, report action taken. --- pubs/commands/remove_cmd.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pubs/commands/remove_cmd.py b/pubs/commands/remove_cmd.py index 5351c8f..0ea4827 100644 --- a/pubs/commands/remove_cmd.py +++ b/pubs/commands/remove_cmd.py @@ -27,3 +27,7 @@ def command(args): if force or sure: for c in args.citekeys: rp.remove_paper(c) + ui.print_('The paper(s) [{}] were removed'.format(', '.join([color.dye(c, color.citekey) for c in args.citekeys]))) + # FIXME: print should check that removal proceeded well. + else: + ui.print_('The paper(s) [{}] were not removed'.format(', '.join([color.dye(c, color.citekey) for c in args.citekeys])))