Skip to content

Commit 782b32b

Browse files
committed
clearer comment on doubleparse of cli flags
1 parent 724273e commit 782b32b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/cargo/util/config/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -748,9 +748,10 @@ impl Config {
748748
if let Some(unstable_flags) = self.get::<Option<CliUnstable>>("unstable")? {
749749
self.unstable_flags = unstable_flags;
750750
}
751-
// NB. It sucks to parse these twice, but doing it again here
751+
// NB. It's not ideal to parse these twice, but doing it again here
752752
// allows the CLI to override config files for both enabling
753-
// and disabling.
753+
// and disabling, and doing it up top allows CLI Zflags to
754+
// control config parsing behavior.
754755
self.unstable_flags.parse(unstable_flags)?;
755756
}
756757

0 commit comments

Comments
 (0)