tools/site_compare/command_line.py
def AddMutualExclusion(self, args):
    """Specifies that a list of arguments are mutually exclusive."""
    if len(args) < 2:
      raise ValueError("At least two arguments must be specified.")

    args = [arg.lower() for arg in args]

    for index in xrange(len(args)-1):
      for index2 in xrange(index+1, len(args)):
        self.arg_dict[args[index]].AddMutualExclusion(self.arg_dict[args[index2]])
Specifies that a list of arguments are mutually exclusive.
Specifies that a list of arguments are mutually exclusive.
Specifies that a list of arguments are mutually exclusive .
def AddMutualExclusion(self, args):
    if len(args) < 2:
      raise ValueError("At least two arguments must be specified.")
    args = [arg.lower() for arg in args]
    for index in xrange(len(args)-1):
      for index2 in xrange(index+1, len(args)):
        self.arg_dict[args[index]].AddMutualExclusion(self.arg_dict[args[index2]])
def AddMutualExclusion ( self , args ) : if len ( args ) < 2 : raise ValueError ( "At least two arguments must be specified." ) args = [ arg . lower ( ) for arg in args ] for index in xrange ( len ( args ) - 1 ) : for index2 in xrange ( index + 1 , len ( args ) ) : self . arg_dict [ args [ index ] ] . AddMutualExclusion ( self . arg_dict [ args [ index2 ] ] )
Specifies that a list of arguments are mutually exclusive.
Specifies that a list of arguments are mutually exclusive .
"""Specifies that a list of arguments are mutually exclusive."""
self
args