tools/variations/split_variations_cmd.py
def _ParseFeatureListString(data, is_disable):
  """Parses --enable/--disable-features switch value string.

  The switch value string is parsed to a list of _Feature objects.

  Args:
      data: --enable-features or --disable-features switch value string.
      is_disable: Parses --enable-features switch value string if True;
          --disable-features switch value string if False.
  """
  items = data.split(',')
  results = []
  for item in items:
    pair = item.split('<', 1)
    feature = pair[0]
    value = None
    if len(pair) > 1:
      value = pair[1]
    star = feature.startswith('*')
    if star:
      if is_disable:
        raise ValueError('--disable-features should not mark a feature with *')
      feature = feature[1:]
    results.append(_Feature(star, feature, value))
  return results
Parses --enable/--disable-features switch value string.

  The switch value string is parsed to a list of _Feature objects.

  Args:
      data: --enable-features or --disable-features switch value string.
      is_disable: Parses --enable-features switch value string if True;
          --disable-features switch value string if False.
  
-enable/--disable-features switch value string.
The switch value string is parsed to a list of _Feature objects.
- enable / -- disable - features switch value string . The switch value string is parsed to a list of _Feature objects .
def _ParseFeatureListString(data, is_disable):
  items = data.split(',')
  results = []
  for item in items:
    pair = item.split('<', 1)
    feature = pair[0]
    value = None
    if len(pair) > 1:
      value = pair[1]
    star = feature.startswith('*')
    if star:
      if is_disable:
        raise ValueError('--disable-features should not mark a feature with *')
      feature = feature[1:]
    results.append(_Feature(star, feature, value))
  return results
def _ParseFeatureListString ( data , is_disable ) : items = data . split ( ',' ) results = [ ] for item in items : pair = item . split ( '<' , 1 ) feature = pair [ 0 ] value = None if len ( pair ) > 1 : value = pair [ 1 ] star = feature . startswith ( '*' ) if star : if is_disable : raise ValueError ( '--disable-features should not mark a feature with *' ) feature = feature [ 1 : ] results . append ( _Feature ( star , feature , value ) ) return results
Parses --enable/--disable-features switch value string.
Parses -- enable / -- disable - features switch value string .
"""Parses --enable/--disable-features switch value string.

  The switch value string is parsed to a list of _Feature objects.

  Args:
      data: --enable-features or --disable-features switch value string.
      is_disable: Parses --enable-features switch value string if True;
          --disable-features switch value string if False.
  """
data
enable-features or --disable-features switch value string.
enable - features or -- disable - features switch value string .
is_disable
-enable-features switch value string if True;
disable-features switch value string if False.
- enable - features switch value string if True ; disable - features switch value string if False .