<reponame>paperfront/FaceReplace
from face_write import write_all_faces
import sys

if __name__ == "__main__":
    argv = sys.argv
    if len(argv) < 3:
        print("Proper usage: driver.py [background_path] [source path] [optional flags]")
        exit(1)
    background_path, source_path = argv[1:3]
    extract = False
    if len(argv) > 3:
        if argv[3] == '--extract':
            extract = True
    write_all_faces(background_path, source_path, extract=extract)

from face_write import write_all_faces
import sys

if __name__ == "__main__":
    argv = sys.argv
    if len(argv) < 3:
        print("Proper usage: driver.py [background_path] [source path] [optional flags]")
        exit(1)
    background_path, source_path = argv[1:3]
    extract = False
    if len(argv) > 3:
        if argv[3] == '--extract':
            extract = True
    write_all_faces(background_path, source_path, extract=extract)