File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,11 @@ interface Option<T> {
6565 * Description of the option. Leave blank to hide the option.
6666 */
6767 description ?: string
68+
69+ /**
70+ * Whether to print this option in --help output
71+ */
72+ hidden ?: boolean
6873}
6974
7075type OptionType < T > = T extends boolean
@@ -166,6 +171,7 @@ const options: Options<Required<Args>> = {
166171 https://myname.coder-cloud.com at which you can easily access your code-server instance.
167172 Authorization is done via GitHub.
168173 ` ,
174+ hidden : true ,
169175 } ,
170176}
171177
@@ -178,7 +184,7 @@ export const optionDescriptions = (): string[] => {
178184 } ) ,
179185 { short : 0 , long : 0 } ,
180186 )
181- return entries . map ( ( [ k , v ] ) => {
187+ return entries . filter ( ( [ _ , v ] ) => ! v . hidden ) . map ( ( [ k , v ] ) => {
182188 const help = `${ " " . repeat ( widths . short - ( v . short ? v . short . length : 0 ) ) } ${ v . short ? `-${ v . short } ` : " " } --${ k } `
183189 return (
184190 help +
You can’t perform that action at this time.
0 commit comments