File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ export abstract class SchematicCommand<
108
108
schematic . description . schemaJson || { } ,
109
109
) ;
110
110
111
- this . description . options . push ( ...options ) ;
111
+ this . description . options . push ( ...options . filter ( x => ! x . hidden ) ) ;
112
112
}
113
113
}
114
114
Original file line number Diff line number Diff line change @@ -182,7 +182,8 @@ export async function parseJsonSchemaToOptions(
182
182
const aliases = json . isJsonArray ( current . aliases ) ? [ ...current . aliases ] . map ( x => '' + x )
183
183
: current . alias ? [ '' + current . alias ] : [ ] ;
184
184
const format = typeof current . format == 'string' ? current . format : undefined ;
185
- const hidden = ! ! current . hidden ;
185
+ const visible = current . visible === undefined || current . visible === true ;
186
+ const hidden = ! ! current . hidden || ! visible ;
186
187
187
188
const option : Option = {
188
189
name,
You can’t perform that action at this time.
0 commit comments