(self, name, default)
Returns the value of a flag (if not None) or a default value.

    Args:
      name: A string, the name of a flag.
      default: Default value to use if the flag value is None.
Returns the value of a flag (if not None) or a default value.
Returns the value of a flag ( if not None ) or a default value .
def get(self, name, default):
    """Returns the value of a flag (if not None) or a default value.

    Args:
      name: A string, the name of a flag.
      default: Default value to use if the flag value is None.
    """

    value = self.__getattr__(name)
    if value is not None:  # Can't do if not value, b/c value might be '0' or ""
      return value
    else:
      return default
def get ( self , name , default ) : value = self . __getattr__ ( name ) if value is not None : # Can't do if not value, b/c value might be '0' or "" return value else : return default