docs: def cli(family_file, family_type, to_json, to_madeline, to_ped, to_dict, 
          outfile, logfile, loglevel):
      """Cli for testing the ped parser."""
      from pprint import pprint as pp
      
      my_parser = FamilyParser(family_file, family_type)
      
      if to_json:
          if outfile:
              outfile.write(my_parser.to_json())
          else:
              print(my_parser.to_json())
      elif to_madeline:
          for line in my_parser.to_madeline():
              if outfile:
                  outfile.write(line + '\n')
              else:
                  print(line)
              
      elif to_ped:
          for line in my_parser.to_ped():
              if outfile:
                  outfile.write(line + '\n')
              else:
                  print(line)
              
      elif to_dict:
          pp(my_parser.to_dict())