diff --git a/npm/ng-packs/packages/schematics/src/commands/change-theme/schema.json b/npm/ng-packs/packages/schematics/src/commands/change-theme/schema.json index f38cc0037b..6eb6bc71a5 100644 --- a/npm/ng-packs/packages/schematics/src/commands/change-theme/schema.json +++ b/npm/ng-packs/packages/schematics/src/commands/change-theme/schema.json @@ -6,8 +6,11 @@ "properties": { "name": { "description": "The name of theme will change.", - "type": "integer", - "default": 1, + "type": "number", + "$default": { + "$source": "argv", + "index": 0 + }, "enum": [1, 2, 3, 4], "x-prompt": { "message": "Which theme would you like to use?", @@ -23,7 +26,11 @@ "targetProject": { "description": "The name of the project will change the style.The project type must be 'application'", "type": "string", - "x-prompt": "Please enter the project name" + "x-prompt": "Please enter the project name", + "$default": { + "$source": "argv", + "index": 1 + } } }, "required": ["name"]