Skip to content

Commit 7a39938

Browse files
alan-agius4clydin
authored andcommitted
fix(@angular-devkit/schematics-cli): remove _ property from options
Closes #19416
1 parent c8aafad commit 7a39938

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/angular_devkit/schematics_cli/bin/schematics.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export async function main({
233233
/**
234234
* Remove every options from argv that we support in schematics itself.
235235
*/
236-
const parsedArgs = Object.assign({}, argv);
236+
const parsedArgs = Object.assign({}, argv) as Record<string, unknown>;
237237
delete parsedArgs['--'];
238238
for (const key of booleanArgs) {
239239
delete parsedArgs[key];
@@ -259,7 +259,7 @@ export async function main({
259259
}
260260
});
261261

262-
parsedArgs._ = [];
262+
delete parsedArgs._;
263263

264264
// Add prompts.
265265
if (argv['interactive'] && isTTY()) {

0 commit comments

Comments
 (0)