# File lib/hammer_cli/apipie/option_builder.rb, line 59
    def option_opts(param)
      opts = {}
      opts[:required] = true if (param.required? and require_options?)
      # FIXME: There is a bug in apipie, it does not produce correct expected type for Arrays
      # When it's fixed, we should test param["expected_type"] == "array"
      opts[:format] = HammerCLI::Options::Normalizers::List.new if param.validator.include? "Array"
      opts[:attribute_name] = HammerCLI.option_accessor_name(param.name)
      return opts
    end