def test_get_resolved_config_prioritizes_cli():
    """
    Options passed in at the command line should override those in the egrc.
    """
    cli_examples_dir = 'test_eg_dir_user_defined'
    cli_custom_dir = 'test_custom_dir_user_defined'
    cli_use_color = 'we_should_use_color'
    cli_pager_cmd = 'command_line_says_pager_with_cat'
    cli_squeeze = 'command_line_wants_to_squeeze'

    egrc_config = _create_dummy_egrc_config()

    expected = config.Config(
        examples_dir=cli_examples_dir,
        custom_dir=cli_custom_dir,
        use_color=cli_use_color,
        color_config=egrc_config.color_config,
        pager_cmd=cli_pager_cmd,
        squeeze=cli_squeeze,
        subs=egrc_config.subs,
        editor_cmd=egrc_config.editor_cmd,
    )

    _assert_about_get_resolved_config(
        cli_egrc_path=None,
        cli_examples_dir=cli_examples_dir,
        cli_custom_dir=cli_custom_dir,
        cli_use_color=cli_use_color,
        cli_pager_cmd=cli_pager_cmd,
        cli_squeeze=cli_squeeze,
        egrc_config=egrc_config,
        environment_editor_cmd=None,
        expected_config=expected,
    )

    Options passed in at the command line should override those in the egrc.
    
test/config_test.py