diff --git a/packages/angular_devkit/schematics_cli/bin/schematics.ts b/packages/angular_devkit/schematics_cli/bin/schematics.ts index 5a15347ad034..e38c7580704c 100644 --- a/packages/angular_devkit/schematics_cli/bin/schematics.ts +++ b/packages/angular_devkit/schematics_cli/bin/schematics.ts @@ -233,7 +233,7 @@ export async function main({ /** * Remove every options from argv that we support in schematics itself. */ - const parsedArgs = Object.assign({}, argv); + const parsedArgs = Object.assign({}, argv) as Record; delete parsedArgs['--']; for (const key of booleanArgs) { delete parsedArgs[key]; @@ -259,7 +259,7 @@ export async function main({ } }); - parsedArgs._ = []; + delete parsedArgs._; // Add prompts. if (argv['interactive'] && isTTY()) {