error when passing in a CLI flag that's already in config #266
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
Because of how config stuff works (by passing in "fake" CLI args), if you try to pass a command line flag that's already configured through
oro.kdl
, it will error telling you there's duplicate flags.Instead, we should filter the list of flags-from-config such that we don't try to apply the config one if we have a CLI one already.
Repro steps:
oro.kdl
file withoptions { lockfile-only; }
, in a basic js projectcargo run -- apply --lockfile-only
The text was updated successfully, but these errors were encountered: