  
          self.images_found = len(self.input_dir)
  
          for filename in self.input_dir:
              if self.arguments.verbose:
                  print('Processing: {}'.format(os.path.basename(filename)))
  
              self.process_image(filename)
 
</s> remove         self.arguments = parser.parse_args()
 </s> add         parser.set_defaults(func=self.process_arguments) </s> remove         parser = self.add_optional_arguments(parser)
        self.arguments = parser.parse_args()
 </s> add         self.parser = self.add_optional_arguments(self.parser)
        self.parser.set_defaults(func=self.process_arguments)

    def create_parser(self, subparser, command, description):
        parser = subparser.add_parser(
            command,
            description=description,
            epilog="Questions and feedback: \
            https://github.com/deepfakes/faceswap-playground"
        )
        return parser </s> remove     def parse_arguments(self, description):
        parser = argparse.ArgumentParser(
 </s> add     def parse_arguments(self, description, subparser, command):
        parser = subparser.add_parser(
            command,
            help="This command trains the model for the two faces A and B.", </s> remove     def __init__(self, description='default'):
        print('Initializing')
        self.parse_arguments(description)
 </s> add     def __init__(self, subparser, command, description='default'):
        self.create_parser(subparser, command, description)
        self.parse_arguments(description, subparser, command)
        self.process_directory()

    def process_directory(self):
  
          self.images_found = len(self.input_dir)
  
        self.process_directory()

    def process_directory(self):
          for filename in self.input_dir:
              if self.arguments.verbose:
                  print('Processing: {}'.format(os.path.basename(filename)))
  
              self.process_image(filename)
keep keep add keep keep keep keep keep
 Unified CLI (#22)

* Created a single script to call the other ones.

Usage is ./faceswap.py {train|extract|convert}

* Improved the help from the commands.

* Added forgotten faceswap.py file.

* Changed gitignore to add the scripts.

* Updates gitignore.

* Added guarding not to execute code when imported.

* Removed useless script. Display help when no arguments are provided.

* Update README 
lib/cli.py