print out some progress for convert command

This commit is contained in:
Martin Baeuml
2012-02-20 12:55:17 +01:00
parent 77c632d3b7
commit cefe16181b
+6 -1
View File
@@ -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)