mosen/ybuild — Issue #4: On windows 7 always usage
Author: albertosantini
Created: 2012-02-24 13:35:50+00:00
State: open

The usage message is always displayed.

I modified cli.js to display the arguments passed:

*** ybuild

ybuild 0.0.3
parsed { argv: { remain: [], cooked: [], original: [], toString: [Function] } }
parsed.help undefined
parsed.argv.remain.length 0
usage: ybuild [options]
...

*** ybuild -f build.json

parsed { buildfile: 'build.json',
argv:
{ remain: [],
cooked: [ '--buildfile', 'build.json' ],
original: [ '-f', 'build.json' ],
toString: [Function] } }
parsed.help undefined
parsed.argv.remain.length 0
usage: ybuild [options]

If I force the usage condition there is a problem with buildDirs, derived by parsed.argv.remain, that is empty.
So the build method is not called.