Mercurial > projects > dil
diff trunk/src/main.d @ 740:f3dead0310ce
Added '-v' (verbose) option to command 'ddoc'.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Sat, 09 Feb 2008 15:10:13 +0100 |
parents | f88b5285b86b |
children | 7173ece1b696 |
line wrap: on
line diff
--- a/trunk/src/main.d Sat Feb 09 14:24:35 2008 +0100 +++ b/trunk/src/main.d Sat Feb 09 15:10:13 2008 +0100 @@ -92,11 +92,14 @@ auto macroPaths = GlobalSettings.ddocFilePaths; char[][] filePaths; bool incUndoc; + bool verbose; // Parse arguments. foreach (arg; args[3..$]) { if (arg == "-i") incUndoc = true; + else if (arg == "-v") + verbose = true; else if (arg.length > 5 && toLower(arg[$-4..$].dup) == "ddoc") macroPaths ~= arg; else @@ -105,7 +108,7 @@ auto infoMan = new InfoManager(); // Execute command. - cmd.DDoc.execute(filePaths, destination, macroPaths, incUndoc, infoMan); + cmd.DDoc.execute(filePaths, destination, macroPaths, incUndoc, verbose, infoMan); if (infoMan.info.length) return printErrors(infoMan); break; @@ -348,6 +351,7 @@ Options: -i : include undocumented symbols + -v : verbose output Example: dil d doc/ src/main.d mymacros.ddoc -i`;