File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -100,9 +100,7 @@ while (arg = argv.shift()) {
100
100
options . nocolor = true ;
101
101
break ;
102
102
case 'version' :
103
- sys . print ( 'vows ' ) ;
104
- sys . puts ( fs . readFileSync ( path . join ( __dirname , '..' , 'package.json' ) )
105
- . toString ( ) . match ( / " v e r s i o n " \s * : \s * " ( [ \d . ] + ) " / ) [ 1 ] ) ;
103
+ sys . puts ( 'vows ' + vows . version ) ;
106
104
process . exit ( 0 ) ;
107
105
case 'help' :
108
106
case 'h' :
Original file line number Diff line number Diff line change 16
16
// }).run();
17
17
//
18
18
var sys = require ( 'sys' ) ,
19
+ path = require ( 'path' ) ,
19
20
events = require ( 'events' ) ,
20
21
vows = exports ;
21
22
@@ -186,3 +187,7 @@ vows.describe = function (subject) {
186
187
187
188
return suite ;
188
189
} ;
190
+
191
+
192
+ vows . version = require ( 'fs' ) . readFileSync ( path . join ( __dirname , '..' , 'package.json' ) )
193
+ . toString ( ) . match ( / " v e r s i o n " \s * : \s * " ( [ \d . ] + ) " / ) [ 1 ] ;
You can’t perform that action at this time.
0 commit comments