class Mixlib::ShellOut

def validate_options(opts)

def validate_options(opts)
  if login && !user
    raise InvalidCommandOption, "cannot set login without specifying a user"
  end
  super
end