'Configures this connection information instance with data from
options specified by the user on the command line. These have a
lower precedence than those set on the play or host.'

def set_options(self, options):

    self.become = options.become
    self.become_method = options.become_method
    self.become_user = options.become_user
    self.check_mode = boolean(options.check, strict=False)
    for flag in ['ssh_common_args', 'docker_extra_args', 'sftp_extra_args', 'scp_extra_args', 'ssh_extra_args']:
        setattr(self, flag, getattr(options, flag, ''))
    for flag in ['connection', 'remote_user', 'private_key_file', 'verbosity', 'force_handlers', 'step', 'start_at_task', 'diff']:
        attribute = getattr(options, flag, False)
        if attribute:
            setattr(self, flag, attribute)
    if (hasattr(options, 'timeout') and options.timeout):
        self.timeout = int(options.timeout)
    if hasattr(options, 'tags'):
        self.only_tags.update(options.tags)
    if (len(self.only_tags) == 0):
        self.only_tags = set(['all'])
    if hasattr(options, 'skip_tags'):
        self.skip_tags.update(options.skip_tags)
