From cefe16181b4a170fdde924576f06cb716c0de83b Mon Sep 17 00:00:00 2001 From: Martin Baeuml Date: Mon, 20 Feb 2012 12:55:17 +0100 Subject: [PATCH] print out some progress for convert command --- sloth/core/commands.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sloth/core/commands.py b/sloth/core/commands.py index 09944ba..4a22d06 100644 --- a/sloth/core/commands.py +++ b/sloth/core/commands.py @@ -18,10 +18,15 @@ class ConvertCommand(BaseCommand): def handle(self, *args, **options): if len(args) != 2: - raise CommandError("Expect exactly 2 arguments.") + raise CommandError("convert: Expecting exactly 2 arguments.") input, output = args[:] + logger.info("converting from %s to %s" % (input, output)) + + logger.debug("loading annotations from %s" % input) self.labeltool.loadAnnotations(input) + + logger.debug("saving annotations to %s" % output) self.labeltool.saveAnnotations(output)