Skip to content

Commit ad0e0f5

Browse files
committed
Updated layout in help message.
Changed all console.logs to process.stdout.write
1 parent c316eeb commit ad0e0f5

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

bin/doxdox

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@ var templates = {
1414

1515
var title = 'Untitled Project',
1616
description = '',
17-
layout = 'bootstrap';
17+
layout = 'bootstrap',
18+
filename = '';
1819

1920
var args = process.argv.slice(2),
2021
value;
2122

22-
var filename = '';
23-
2423
while (args.length) {
2524

2625
value = args.shift();
@@ -60,8 +59,8 @@ while (args.length) {
6059
process.stdout.write(' -l, --layout\t\tTemplate to render the documentation with.' + '\n');
6160
process.stdout.write('\n');
6261
process.stdout.write(' Available Layouts:' + '\n\n');
63-
process.stdout.write(' - Bootstrap 3 (http://getbootstrap.com/)' + '\n');
64-
process.stdout.write(' - Markdown (http://daringfireball.net/projects/markdown/)' + '\n');
62+
process.stdout.write(' - Bootstrap 3\t\t(http://getbootstrap.com/)' + '\n');
63+
process.stdout.write(' - Markdown\t\t(http://daringfireball.net/projects/markdown/)' + '\n');
6564
process.stdout.write('\n');
6665
process.kill();
6766
break;
@@ -92,13 +91,13 @@ fs.exists(filename, function (exists) {
9291

9392
} else {
9493

95-
console.log('Invalid layout specified.');
94+
process.stdout.write('Invalid layout specified.' + '\n');
9695

9796
}
9897

9998
} else {
10099

101-
console.log('File not found.');
100+
process.stdout.write('File not found.' + '\n');
102101

103102
}
104103

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
exports.parseData = function (data) {
1+
module.exports.parseData = function (data) {
22

33
data.forEach(function (methods) {
44

0 commit comments

Comments
 (0)