Skip to content

Commit 75e3f80

Browse files
committed
Clarify a message that people found confusing
1 parent 4514bd4 commit 75e3f80

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

apps/rush-lib/src/cli/actions/CommandLineMigrationAdvisor.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,26 @@ export class CommandLineMigrationAdvisor {
2424
}
2525

2626
if (args[0] === 'install') {
27-
if (args.indexOf('-C') >= 0 || args.indexOf('--full-clean') >= 0) {
27+
if (args.indexOf('--full-clean') >= 0) {
2828
CommandLineMigrationAdvisor._reportDeprecated(
2929
'Instead of "rush install --full-clean", use "rush purge --unsafe".');
3030
return false;
3131
}
32-
if (args.indexOf('-c') >= 0 || args.indexOf('--clean') >= 0) {
32+
if (args.indexOf('-C') >= 0) {
33+
CommandLineMigrationAdvisor._reportDeprecated(
34+
'Instead of "rush install -C", use "rush purge --unsafe".');
35+
return false;
36+
}
37+
if (args.indexOf('--clean') >= 0) {
3338
CommandLineMigrationAdvisor._reportDeprecated(
3439
'Instead of "rush install --clean", use "rush install --purge".');
3540
return false;
3641
}
42+
if (args.indexOf('-c') >= 0) {
43+
CommandLineMigrationAdvisor._reportDeprecated(
44+
'Instead of "rush install -c", use "rush install --purge".');
45+
return false;
46+
}
3747
}
3848
}
3949

0 commit comments

Comments
 (0)