update-copyright.py: Use the configured files.authors and files.files
[update-copyright.git] / bin / update-copyright.py
index 6fff076986e68a3c5425531c1bdc9d5657a2cc85..a4004d82574f7aabb562dbcde15e777d4ace613c 100755 (executable)
@@ -63,9 +63,9 @@ if __name__ == '__main__':
 
     project = Project(root=_os_path.dirname(_os_path.abspath(options.config)))
     project.load_config(open(options.config, 'r'))
-    if options.authors:
+    if options.authors and project.with_authors:
         project.update_authors(dry_run=options.dry_run)
-    if options.files:
+    if options.files and project.with_files:
         project.update_files(files=args, dry_run=options.dry_run)
-    if options.pyfile:
+    if options.pyfile and project._pyfile:
         project.update_pyfile(dry_run=options.dry_run)