code: def flags(self, text, scoped=False):
          
  
          global_retry = False
          if (self.version == _regex.V1 or scoped) and '-x' in text and self.verbose:
              self.verbose = False
          elif 'x' in text and not self.verbose:
              self.verbose = True
              if not scoped and self.version == _regex.V0:
                  self.temp_global_flag_swap['verbose'] = True
                  global_retry = True
          if 'V0' in text and self.version == _regex.V1:  # pragma: no cover
              # Default is V0 if none is selected,
              # so it is unlikely that this will be selected.
              self.temp_global_flag_swap['version'] = True
              self.version = _regex.V0
              global_retry = True
          elif "V1" in text and self.version == _regex.V0:
              self.temp_global_flag_swap['version'] = True
              self.version = _regex.V1
              global_retry = True
          if global_retry:
              raise GlobalRetryException('Global Retry')
docs: Analyze flags.