mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
Don't crash on no args
This commit is contained in:
parent
e40778070e
commit
449d60cdff
@ -49,7 +49,7 @@ namespace ts {
|
||||
}
|
||||
|
||||
export function executeCommandLine(args: string[]): void {
|
||||
if ((args[0].toLowerCase() === "--build") || (args[0].toLowerCase() === "-b")) {
|
||||
if (args.length > 0 && ((args[0].toLowerCase() === "--build") || (args[0].toLowerCase() === "-b"))) {
|
||||
return performBuild(createCompilerHost({}), createDiagnosticReporter(sys), args.slice(1), sys);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user