code: def cli(yaml_paths, pptx_template_path, font_size, master_slide_idx, slide_layout_idx, dst_dir, font_name,
          slide_txt_alignment, validate):
      
  
      dst_dir = Path(dst_dir)
  
      pptx_template_path = Path(pptx_template_path)
      pptx_template = pick_master_slide(pptx_template_path)
  
      yamlfiles = []
      for yaml_path in yaml_paths:
          yaml_path = Path(yaml_path)
          if yaml_path.is_dir():
              yamlfiles.extend([yml for yml in yaml_path.iterdir()])
          else:
              yamlfiles.append(yaml_path)
  
      if validate:
          exit_fail = False
          for yamlfile in yamlfiles:
              try:
                  validate_yaml_file(SCHEMA_FOR_YAML, Path(yamlfile))
                  msg = f"VALIDATE: Validation of {yamlfile} passed"
                  click.echo(click.style(msg, fg="blue"))
              except jsonschema.exceptions.ValidationError as err:
                  msg = f"ERR: {yamlfile} {str(err.message)} {err.path}"
                  click.echo(click.style(msg, fg="red"), nl=True)
                  exit_fail = True
              except Exception:
                  raise
          if exit_fail:
              sys.exit(1)
  
      for yamlfile in yamlfiles:
          try:
              r = build_slide(
                      Path(yamlfile),
                      pptx_template,
                      master_slide_idx,
                      slide_layout_idx,
                      font_size,
                      dst_dir,
                      font_name,
                      slide_txt_alignment
                  )
              msg = f"PPTX: {r}"
              click.echo(click.style(msg, fg="green"))
          except Exception:
              raise
docs: A powerpoint builder
  
      https://github.com/sukujgrg/pptx-builder-from-yaml