Skip to content

Commit

Permalink
fix(@angular-devkit/schematics-cli): remove _ property from options
Browse files Browse the repository at this point in the history
Closes #19416

(cherry picked from commit 7a39938)
  • Loading branch information
alan-agius4 authored and clydin committed Nov 18, 2020
1 parent bad24a1 commit c3d1f41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/angular_devkit/schematics_cli/bin/schematics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, unknown>;
delete parsedArgs['--'];
for (const key of booleanArgs) {
delete parsedArgs[key];
Expand All @@ -259,7 +259,7 @@ export async function main({
}
});

parsedArgs._ = [];
delete parsedArgs._;

// Add prompts.
if (argv['interactive'] && isTTY()) {
Expand Down

0 comments on commit c3d1f41

Please sign in to comment.