Mercurial > projects > dil
diff trunk/src/main.d @ 765:bc812843603c
Template functions are wrapped inside TemplateDeclarations now.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Sat, 16 Feb 2008 20:18:42 +0100 |
parents | 4579e8505d5e |
children | ef9bee5a2d61 |
line wrap: on
line diff
--- a/trunk/src/main.d Sat Feb 16 03:28:39 2008 +0100 +++ b/trunk/src/main.d Sat Feb 16 20:18:42 2008 +0100 @@ -86,7 +86,7 @@ printSymbolTable(mod, ""); } - printErrors(infoMan); + infoMan.hasInfo && printErrors(infoMan); break; case "ddoc", "d": if (args.length < 4) @@ -113,8 +113,7 @@ infoMan = new InfoManager(); // Execute command. cmd.DDoc.execute(filePaths, destination, macroPaths, incUndoc, verbose, infoMan); - if (infoMan.hasInfo) - printErrors(infoMan); + infoMan.hasInfo && printErrors(infoMan); break; case "gen", "generate": char[] fileName; @@ -136,8 +135,7 @@ if (!(options & (DocOption.XML | DocOption.HTML))) options |= DocOption.XML; // Default to XML. cmd.Generate.execute(fileName, options, infoMan); - if (infoMan.hasInfo) - printErrors(infoMan); + infoMan.hasInfo && printErrors(infoMan); break; case "importgraph", "igraph": string filePath; @@ -238,7 +236,7 @@ Stdout(token.srcText)(separator); } - printErrors(infoMan); + infoMan.hasInfo && printErrors(infoMan); break; case "trans", "translate": if (args.length < 3)