third_party/blink/tools/blinkpy/style/optparser.py
def to_flag_string(self, options):
        """Return a flag string of the given CommandOptionValues instance.

        This method orders the flag values alphabetically by the flag key.

        Args:
          options: A CommandOptionValues instance.
        """
        flags = {}
        flags['min-confidence'] = options.min_confidence
        flags['output'] = options.output_format
        # Only include the filter flag if user-provided rules are present.
        filter_rules = options.filter_rules
        if filter_rules:
            flags['filter'] = ','.join(filter_rules)
        if options.git_commit:
            flags['git-commit'] = options.git_commit
        if options.diff_files:
            flags['diff_files'] = options.diff_files

        flag_string = ''
        # Alphabetizing lets us unit test this method.
        for key in sorted(flags.keys()):
            flag_string += self._flag_pair_to_string(key, flags[key]) + ' '

        return flag_string.strip()
Return a flag string of the given CommandOptionValues instance.

        This method orders the flag values alphabetically by the flag key.

        Args:
          options: A CommandOptionValues instance.
        
Return a flag string of the given CommandOptionValues instance.
This method orders the flag values alphabetically by the flag key.
Return a flag string of the given CommandOptionValues instance . This method orders the flag values alphabetically by the flag key .
def to_flag_string(self, options):
        flags = {}
        flags['min-confidence'] = options.min_confidence
        flags['output'] = options.output_format
        filter_rules = options.filter_rules
        if filter_rules:
            flags['filter'] = ','.join(filter_rules)
        if options.git_commit:
            flags['git-commit'] = options.git_commit
        if options.diff_files:
            flags['diff_files'] = options.diff_files
        flag_string = ''
        for key in sorted(flags.keys()):
            flag_string += self._flag_pair_to_string(key, flags[key]) + ' '
        return flag_string.strip()
def to_flag_string ( self , options ) : flags = { } flags [ 'min-confidence' ] = options . min_confidence flags [ 'output' ] = options . output_format filter_rules = options . filter_rules if filter_rules : flags [ 'filter' ] = ',' . join ( filter_rules ) if options . git_commit : flags [ 'git-commit' ] = options . git_commit if options . diff_files : flags [ 'diff_files' ] = options . diff_files flag_string = '' for key in sorted ( flags . keys ( ) ) : flag_string += self . _flag_pair_to_string ( key , flags [ key ] ) + ' ' return flag_string . strip ( )
Return a flag string of the given CommandOptionValues instance.
Return a flag string of the given CommandOptionValues instance .
"""Return a flag string of the given CommandOptionValues instance.

        This method orders the flag values alphabetically by the flag key.

        Args:
          options: A CommandOptionValues instance.
        """ # Only include the filter flag if user-provided rules are present. # Alphabetizing lets us unit test this method.
self
options
A CommandOptionValues instance.
A CommandOptionValues instance .