Changed -D option (which will become the "Define Option" option for compatibility reason) to the -X option, for "expel" all the doclets to console and quit.

This commit is contained in:
Michael Mathews 2011-01-07 12:31:24 +00:00
parent b96fc0f6e6
commit 70b4260697
2 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ function main() {
docs = app.jsdoc.parser.parse(sourceFiles, env.opts.encoding);
if (env.opts.dump) {
if (env.opts.expel) {
dump(docs);
exit(0);
}

View File

@ -24,7 +24,7 @@
argsParser.addOption('V', 'validate', false, 'Validate the results produced by parsing the source code.');
argsParser.addOption('r', 'recurse', false, 'Recurse into subdirectories when scanning for source code files.');
argsParser.addOption('h', 'help', false, 'Print this message and quit.');
argsParser.addOption('D', 'dump', false, 'Dump all found doclet internals to console and quit.');
argsParser.addOption('X', 'expel', false, 'Dump all found doclet internals to console and quit.');
// TODO [-R, recurseonly] = a number representing the depth to recurse