def __call__(self, parser, namespace, values, option_string):
        """Called once for each occurrence."""
        if getattr(namespace, self.dest) is self.default:
            setattr(namespace, self.dest, [values])
        else:
            getattr(namespace, self.dest).append(values)
def __call__ ( self , parser , namespace , values , option_string ) : if getattr ( namespace , self . dest ) is self . default : setattr ( namespace , self . dest , [ values ] ) else : getattr ( namespace , self . dest ) . append ( values )
Called once for each occurrence.