code: def main():
      
  
      parser = argparse.ArgumentParser(description='%(prog)s add/remove vmnet interfaces')
      parser.add_argument('-r', "--range", nargs='+', action=parse_vmnet_range(1, 255),
                          type=int, help="vmnet range to add (default is {} {})".format(DEFAULT_RANGE[0], DEFAULT_RANGE[1]))
      parser.add_argument("-C", "--clean", action="store_true", help="remove all vmnets excepting vmnet1 and vmnet8")
      parser.add_argument("-l", "--list", action="store_true", help="list all existing vmnets (UNIX only)")
  
      try:
          args = parser.parse_args()
      except argparse.ArgumentTypeError as e:
          raise SystemExit(e)
  
      vmnet_range = args.range if args.range is not None else DEFAULT_RANGE
      if sys.platform.startswith("win"):
          try:
              vmnet_windows(args, vmnet_range[0], vmnet_range[1])
          except SystemExit:
              os.system("pause")
              raise
      else:
          vmnet_unix(args, vmnet_range[0], vmnet_range[1])
docs: Entry point for the VMNET tool.