Skip to content

Merge lists from config file with lists provided in CLI options #32

Description

@Aposhian

Currently, I specify options to a list like:

{
    "build": {
        "mixin": [ "ccache", "rel-with-deb-info" ]
    }
}

then it works just fine, but if I add an additional option to the list via the CLI like:

colcon build --mixin asan-gcc

then the whole list is ignored from my config file, which is rather inconvenient: you must use either all of the defaults and no more, or none of the defaults.

If the lists from the config files were simply merged with options provided on the CLI, then my use case would be easier, but the only way to disable the defaults would be to use --ignore-user-meta, which will apply to all of your defaults, not just one list.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions