# File src/ruby_supportlib/phusion_passenger/standalone/config_utils.rb, line 151 def add_option_parser_options_from_config_spec(parser, spec, options) spec.each do |spec_item| next if spec_item[:cli].nil? args = [] if spec_item[:short_cli] args << spec_item[:short_cli] end args << make_long_cli_switch(spec_item) if type = determine_cli_switch_type(spec_item) args << type end args << format_cli_switch_description(spec_item) cli_parser = make_cli_switch_parser(parser, spec_item, options) parser.on(*args, &cli_parser) end end