def METHOD_NAME(run_cli_command, config_with_profile_factory):
    """Test that `global_only` options are only set globally even if the `--global` flag is not set."""
    config_with_profile_factory()
    option_name = 'autofill.user.email'
    option_value = 'some@email.com'
    options = ['config', 'set', option_name, str(option_value)]
    result = run_cli_command(cmd_verdi.verdi, options, use_subprocess=False)
    options = ['config', 'get', option_name]
    result = run_cli_command(cmd_verdi.verdi, options, use_subprocess=False)
    # Check that the current profile name is not in the output
    assert option_value in result.output.strip()
    assert get_profile().name not in result.output.strip()