class Xcodeproj::XCScheme::CommandLineArgument


[[NSProcessInfo processInfo] arguments] in your app code.
Environment arguments are accessible via the NSDictionary returned from
This class wraps the CommandLineArgument node of a .xcscheme XML file.

def argument

Returns:
  • (String) -
def argument
  @xml_element.attributes['argument']
end

def argument=(argument)

Parameters:
  • key (String) --
def argument=(argument)
  @xml_element.attributes['argument'] = argument
end

def enabled

Returns:
  • (Bool) -
def enabled
  string_to_bool(@xml_element.attributes['isEnabled'])
end

def enabled=(enabled)

Parameters:
  • enabled (Bool) --
def enabled=(enabled)
  @xml_element.attributes['isEnabled'] = bool_to_string(enabled)
end

def initialize(node_or_argument)

Parameters:
  • node_or_argument (nil, REXML::Element, Hash{Symbol => String,Bool}) --
def initialize(node_or_argument)
  create_xml_element_with_fallback(node_or_argument, COMMAND_LINE_ARG_NODE) do
    raise "Must pass a Hash with 'argument' and 'enabled'!" unless node_or_argument.is_a?(Hash) &&
        node_or_argument.key?(:argument) && node_or_argument.key?(:enabled)
    @xml_element.attributes['argument'] = node_or_argument[:argument]
    @xml_element.attributes['isEnabled'] = if node_or_argument.key?(:enabled)
                                             bool_to_string(node_or_argument[:enabled])
                                           else
                                             bool_to_string(false)
                                           end
  end
end

def to_h

Returns:
  • (Hash{:key => String, :value => String, :enabled => Bool}) -
def to_h
  { :argument => argument, :enabled => enabled }
end