def initialize_config_values(parsed):
    """Given the parsed args, initialize the dbt tracking code.

    It would be nice to re-use this profile later on instead of parsing it
    twice, but dbt's intialization is not structured in a way that makes that
    easy.
    """
    try:
        cfg = UserConfig.from_directory(parsed.profiles_dir)
    except RuntimeException:
        cfg = UserConfig.from_dict(None)

    if cfg.send_anonymous_usage_stats:
        dbt.tracking.initialize_tracking(parsed.profiles_dir)
    else:
        dbt.tracking.do_not_track()

    if cfg.use_colors:
        dbt.ui.printer.use_colors()