Skip to content

Commit bd158e9

Browse files
committed
fix(@angular/cli): show deprecation warning when using camel cased arguments
1 parent 64d1750 commit bd158e9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/angular/cli/models/parser.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,13 @@ function _assignOption(
211211
errors.push(error);
212212
ignored.push(arg);
213213
}
214+
215+
if (/^[a-z]+[A-Z]/.test(key)) {
216+
warnings.push(
217+
'Support for camel case arguments has been deprecated and will be removed in a future major version.\n' +
218+
`Use '--${strings.dasherize(key)}' instead of '--${key}'.`,
219+
);
220+
}
214221
}
215222

216223
return consumedNextArg;

0 commit comments

Comments
 (0)