wallet-core/node_modules/nomnom/test.js
2016-10-10 03:43:44 +02:00

24 lines
460 B
JavaScript

var opts = require("./nomnom")
.option('debug', {
abbr: 'd',
flag: true,
help: 'Print debugging info'
})
.option('config', {
abbr: 'c',
default: 'config.json',
help: 'JSON file with tests to run'
})
.option('version', {
flag: true,
help: 'print version and exit',
callback: function() {
return "version 1.2.4";
}
})
.parse();
if (opts.debug) {
console.log("debug")
}