code: def parse_args(args=None):
      
      parser = argparse.ArgumentParser()
  
      parser.add_argument(
          '-w', '--window',
          default="pyqt5",
          choices=find_window_classes(),
          help='Name for the window type to use',
      )
      parser.add_argument(
          '-fs', '--fullscreen',
          action="store_true",
          help='Open the window in fullscreen mode',
      )
      parser.add_argument(
          '-vs', '--vsync',
          type=str2bool,
          default="1",
          help="Enable or disable vsync",
      )
      parser.add_argument(
          '-s', '--samples',
          type=int,
          default=4,
          help="Specify the desired number of samples to use for multisampling",
      )
      parser.add_argument(
          '-c', '--cursor',
          type=str2bool,
          default="true",
          help="Enable or disable displaying the mouse cursor",
      )
  
      return parser.parse_args(args or sys.argv[1:])
docs: Parse arguments from sys.argv