Skip to content

Commit db9d942

Browse files
aciccarelloblakeembrey
authored andcommitted
Remove TypeScript options from help output (TypeStrong#569)
1 parent 272fc51 commit db9d942

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/lib/utils/options/help.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ function getParameterHelp(options: Options, scope: ParameterScope): ParameterHel
6161
*/
6262
export function getOptionsHelp(options: Options): string {
6363
const typeDoc = getParameterHelp(options, ParameterScope.TypeDoc);
64-
const typeScript = getParameterHelp(options, ParameterScope.TypeScript);
65-
const margin = Math.max(typeDoc.margin, typeScript.margin);
6664

6765
const output: string[] = [];
6866
output.push('Usage:');
@@ -72,7 +70,7 @@ export function getOptionsHelp(options: Options): string {
7270
pushHelp(typeDoc);
7371

7472
output.push('', 'TypeScript options:');
75-
pushHelp(typeScript);
73+
output.push('See https://www.typescriptlang.org/docs/handbook/compiler-options.html');
7674

7775
output.push('');
7876
return output.join(ts.sys.newLine);
@@ -81,7 +79,7 @@ export function getOptionsHelp(options: Options): string {
8179
for (let i = 0; i < columns.names.length; i++) {
8280
const usage = columns.names[i];
8381
const description = columns.helps[i];
84-
output.push(usage + padding(margin - usage.length + 2) + description);
82+
output.push(usage + padding(typeDoc.margin - usage.length + 2) + description);
8583
}
8684
}
8785

0 commit comments

Comments
 (0)