Fix format

This commit is contained in:
Bowen Ni
2016-11-30 16:45:40 -08:00
committed by Alex Rickabaugh
parent 6ea3ab7e14
commit dfd8140084
2 changed files with 24 additions and 10 deletions

View File

@ -22,7 +22,8 @@ function codegen(
return CodeGenerator.create(ngOptions, cliOptions, program, host).codegen();
}
export function main(args: any, consoleError: (s: string) => void = console.error): Promise<number> {
export function main(
args: any, consoleError: (s: string) => void = console.error): Promise<number> {
const project = args.p || args.project || '.';
const cliOptions = new tsc.NgcCliOptions(args);
@ -42,4 +43,4 @@ export function main(args: any, consoleError: (s: string) => void = console.erro
if (require.main === module) {
const args = require('minimist')(process.argv.slice(2));
main(args).then((exitCode: number) => process.exit(exitCode));
}
}