Beispiel #1
0
 def handle(self, *args, **options):
     if options['reset']:
         self.msg('reset: deleting all questions (and answers)')
         commands.reset()
     for path in args:
         if os.path.isfile(path):
             if options['check_only']:
                 self.msg('checking file: %s' % path)
                 commands.check_file(path, self.stdout)
             else:
                 self.msg('importing file: %s' % path)
                 commands.import_file(path, self.stdout)
         else:
             self.warn('not a file: %s' % path)