Nih-op is a project mainly written in JavaScript, it's free.
an options parser that *I* wrote
the options parser Dominic Tarr wrote
quick example:
var Nihop = require('nih-op')
, parser =
new Nihop ("node example [options]
", "a banner that goes above the command
")
.option ("boolean","b",0)
.do(function)//called after this option is parsed
.describe("an example boolean option")//describe this option for usuage
.arg(function)//called after a free argument is parsed
see nih-op/example.js for more depth.