File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,19 @@ var templates = {
12
12
markdown : require ( '../templates/markdown.hbs' )
13
13
} ;
14
14
15
+ var args = process . argv . slice ( 2 ) ,
16
+ value ;
17
+
15
18
var title = 'Untitled Project' ,
16
19
description = '' ,
17
20
layout = 'bootstrap' ,
18
21
filename = '' ;
19
22
20
- var args = process . argv . slice ( 2 ) ,
21
- value ;
23
+ if ( args . length ) {
24
+
25
+ filename = args . shift ( ) ;
26
+
27
+ }
22
28
23
29
while ( args . length ) {
24
30
@@ -47,8 +53,7 @@ while (args.length) {
47
53
process . kill ( ) ;
48
54
break ;
49
55
50
- case '-h' :
51
- case '--help' :
56
+ default :
52
57
process . stdout . write ( '\n' ) ;
53
58
process . stdout . write ( ' Usage: doxdox <file> [options]' + '\n\n' ) ;
54
59
process . stdout . write ( ' Options:' + '\n\n' ) ;
@@ -65,10 +70,6 @@ while (args.length) {
65
70
process . kill ( ) ;
66
71
break ;
67
72
68
- default :
69
- filename = value ;
70
- break ;
71
-
72
73
}
73
74
74
75
}
You can’t perform that action at this time.
0 commit comments