def rbvmomi_connection_opts
    opt :host, "host", :type => :string, :short => 'o', :default => ENV['RBVMOMI_HOST']
    opt :port, "port", :type => :int, :short => :none, :default => (ENV.member?('RBVMOMI_PORT') ? ENV['RBVMOMI_PORT'].to_i : 443)
    opt :"no-ssl", "don't use ssl", :short => :none, :default => (ENV['RBVMOMI_SSL'] == '0')
    opt :insecure, "don't verify ssl certificate", :short => 'k', :default => (ENV['RBVMOMI_INSECURE'] == '1')
    opt :user, "username", :short => 'u', :default => (ENV['RBVMOMI_USER'] || 'root')
    opt :password, "password", :short => 'p', :default => (ENV['RBVMOMI_PASSWORD'] || '')
    opt :path, "SOAP endpoint path", :short => :none, :default => (ENV['RBVMOMI_PATH'] || '/sdk')
    opt :debug, "Log SOAP messages", :short => 'd', :default => (ENV['RBVMOMI_DEBUG'] || false)
  end
def rbvmomi_connection_opts
    opt :host, "host", :type => :string, :short => 'o', :default => ENV['RBVMOMI_HOST']
    opt :port, "port", :type => :int, :short => :none, :default => (ENV.member?('RBVMOMI_PORT') ? ENV['RBVMOMI_PORT'].to_i : 443)
    opt :"no-ssl", "don't use ssl", :short => :none, :default => (ENV['RBVMOMI_SSL'] == '0')
    opt :insecure, "don't verify ssl certificate", :short => 'k', :default => (ENV['RBVMOMI_INSECURE'] == '1')
    opt :user, "username", :short => 'u', :default => (ENV['RBVMOMI_USER'] || 'root')
    opt :password, "password", :short => 'p', :default => (ENV['RBVMOMI_PASSWORD'] || '')
    opt :path, "SOAP endpoint path", :short => :none, :default => (ENV['RBVMOMI_PATH'] || '/sdk')
    opt :debug, "Log SOAP messages", :short => 'd', :default => (ENV['RBVMOMI_DEBUG'] || false)
  end
Options used by VIM.connect

  !!!plain
  host: -o --host RBVMOMI_HOST
  port: --port RBVMOMI_PORT (443)
  no-ssl: --no-ssl RBVMOMI_SSL (false)
  insecure: -k --insecure RBVMOMI_INSECURE (false)
  user: -u --user RBVMOMI_USER (root)
  password: -p --password RBVMOMI_PASSWORD ()
  path: --path RBVMOMI_PATH (/sdk)
  debug: -d --debug RBVMOMI_DEBUG (false)