Yep, I've taken from it the fluent interface. El jueves, 26 de septiembre de 2013 14:29:56 UTC+2, Vladimir Varankin escribió: > > Have you seen coa <https://github.com/veged/coa>? It looks very close > > On Wednesday, September 18, 2013 7:21:08 PM UTC+4, Gagle wrote: >> >> Version 0.0.7 <https://github.com/gagle/node-argp> is now available. The >> api is practically closed and the next version 0.1.0 can be used in >> production! >> >> var argv = require ("argp") >> .description ("Sample app.") >> .email ("[email protected]") >> .body () >> //The object an argument definition and the text of the help message >> are >> //configured at the same time >> .group ("Arguments") >> .argument ("arg", { description: "Sample argument" }) >> .group ("Options") >> .option ({ short: "o", long: "opt", description: "Sample option" }) >> .help () >> .version ("v1.2.3") >> .end () >> .argv (); >> console.log (argv); >> /*$ node script.js >> { _debug: false, _filename: __filename, opt: false, help: false, >> version: false, arg: false} >> $ node script.js --help >> Usage: t.js [OPTIONS] [ARGUMENTS] >> Sample app. >> Arguments: arg Sample argument >> Options: -o, --opt Sample option -h, --help >> Display this help message and exit -v, --version Output >> version information and exit >> Report bugs to <[email protected]>.*/ >> >> >>
-- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
