Skip to content

Commit 47a1ef2

Browse files
committed
uncomment printHelp in one more branch
1 parent 2ce18f6 commit 47a1ef2

5 files changed

+133
-1
lines changed

internal/execute/tsc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func executeCommandLineWorker(sys System, cb cbType, commandLine *tsoptions.Pars
8282
reportDiagnostic(ast.NewCompilerDiagnostic(diagnostics.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0, tspath.NormalizePath(sys.GetCurrentDirectory())))
8383
} else {
8484
printVersion(sys)
85-
// print help
85+
printHelp(sys, commandLine)
8686
}
8787
return ExitStatusDiagnosticsPresent_OutputsSkipped, nil
8888
}

testdata/baselines/reference/tsc/commandLine/Parse-watch-interval-option.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,36 @@ ParsedCommandLine::{
3535
Output::
3636
Version 7.0.0-dev
3737

38+
tsc: The TypeScript Compiler - Version 7.0.0-dev
39+
40+
COMMON COMMANDS
41+
42+
tsc
43+
Compiles the current project (tsconfig.json in the working directory.)
44+
45+
tsc app.ts util.ts
46+
Ignoring tsconfig.json, compiles the specified files with default compiler options.
47+
48+
tsc -b
49+
Build a composite project in the working directory.
50+
51+
tsc --init
52+
Creates a tsconfig.json with the recommended settings in the working directory.
53+
54+
tsc -p ./path/to/tsconfig.json
55+
Compiles the TypeScript project located at the specified path.
56+
57+
tsc --help --all
58+
An expanded version of this information, showing all possible compiler options
59+
60+
tsc --noEmit
61+
tsc --target esnext
62+
Compiles the current project, with additional settings.
63+
64+
COMMAND LINE FLAGS
65+
66+
COMMON COMPILER OPTIONS
67+
68+
You can learn about all of the compiler options at https://aka.ms/tsc
69+
70+

testdata/baselines/reference/tsc/commandLine/does-not-add-color-when-NO_COLOR-is-set.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,36 @@ ParsedCommandLine::{
3131
Output::
3232
Version 7.0.0-dev
3333

34+
tsc: The TypeScript Compiler - Version 7.0.0-dev
35+
36+
COMMON COMMANDS
37+
38+
tsc
39+
Compiles the current project (tsconfig.json in the working directory.)
40+
41+
tsc app.ts util.ts
42+
Ignoring tsconfig.json, compiles the specified files with default compiler options.
43+
44+
tsc -b
45+
Build a composite project in the working directory.
46+
47+
tsc --init
48+
Creates a tsconfig.json with the recommended settings in the working directory.
49+
50+
tsc -p ./path/to/tsconfig.json
51+
Compiles the TypeScript project located at the specified path.
52+
53+
tsc --help --all
54+
An expanded version of this information, showing all possible compiler options
55+
56+
tsc --noEmit
57+
tsc --target esnext
58+
Compiles the current project, with additional settings.
59+
60+
COMMAND LINE FLAGS
61+
62+
COMMON COMPILER OPTIONS
63+
64+
You can learn about all of the compiler options at https://aka.ms/tsc
65+
66+

testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-cannot-provide-terminal-width.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,36 @@ ParsedCommandLine::{
3131
Output::
3232
Version 7.0.0-dev
3333

34+
tsc: The TypeScript Compiler - Version 7.0.0-dev
35+
36+
COMMON COMMANDS
37+
38+
tsc
39+
Compiles the current project (tsconfig.json in the working directory.)
40+
41+
tsc app.ts util.ts
42+
Ignoring tsconfig.json, compiles the specified files with default compiler options.
43+
44+
tsc -b
45+
Build a composite project in the working directory.
46+
47+
tsc --init
48+
Creates a tsconfig.json with the recommended settings in the working directory.
49+
50+
tsc -p ./path/to/tsconfig.json
51+
Compiles the TypeScript project located at the specified path.
52+
53+
tsc --help --all
54+
An expanded version of this information, showing all possible compiler options
55+
56+
tsc --noEmit
57+
tsc --target esnext
58+
Compiles the current project, with additional settings.
59+
60+
COMMAND LINE FLAGS
61+
62+
COMMON COMPILER OPTIONS
63+
64+
You can learn about all of the compiler options at https://aka.ms/tsc
65+
66+

testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,36 @@ ParsedCommandLine::{
3131
Output::
3232
Version 7.0.0-dev
3333

34+
tsc: The TypeScript Compiler - Version 7.0.0-dev
35+
36+
COMMON COMMANDS
37+
38+
tsc
39+
Compiles the current project (tsconfig.json in the working directory.)
40+
41+
tsc app.ts util.ts
42+
Ignoring tsconfig.json, compiles the specified files with default compiler options.
43+
44+
tsc -b
45+
Build a composite project in the working directory.
46+
47+
tsc --init
48+
Creates a tsconfig.json with the recommended settings in the working directory.
49+
50+
tsc -p ./path/to/tsconfig.json
51+
Compiles the TypeScript project located at the specified path.
52+
53+
tsc --help --all
54+
An expanded version of this information, showing all possible compiler options
55+
56+
tsc --noEmit
57+
tsc --target esnext
58+
Compiles the current project, with additional settings.
59+
60+
COMMAND LINE FLAGS
61+
62+
COMMON COMPILER OPTIONS
63+
64+
You can learn about all of the compiler options at https://aka.ms/tsc
65+
66+

0 commit comments

Comments
 (0)