File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ module.exports = Argv;
2
2
var path = require ( 'path' ) ;
3
3
4
4
// Hack to work when loaded with CoffeeScript
5
- if ( process . argv . length < 2 || process . argv [ 0 ] != ' node' ) {
5
+ if ( process . argv . length < 2 || ! process . argv [ 0 ] . match ( / (?: ^ | \/ ) n o d e $ / ) ) {
6
6
process . argv = [ 'coffee' , '' ] . concat ( process . argv ) ;
7
7
}
8
8
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " optimist" ,
3
- "version" : " 0.1.4 " ,
3
+ "version" : " 0.1.5 " ,
4
4
"description" : " Light-weight option parsing with an argv hash. No optstrings attached." ,
5
5
"main" : " ./index.js" ,
6
6
"repository" : {
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ exports.whichNodeArgs = function () {
44
44
function testCmd ( cmd , args ) {
45
45
var to = setTimeout ( function ( ) {
46
46
assert . fail ( 'Never got stdout data.' )
47
- } , 1000 ) ;
47
+ } , 5000 ) ;
48
48
49
49
var oldDir = process . cwd ( ) ;
50
50
process . chdir ( __dirname + '/_' ) ;
@@ -63,4 +63,4 @@ function testCmd (cmd, args) {
63
63
var _ = JSON . parse ( buf . toString ( ) ) ;
64
64
assert . eql ( _ . map ( String ) , args . map ( String ) ) ;
65
65
} ) ;
66
- } ;
66
+ }
You can’t perform that action at this time.
0 commit comments