How to use the script function from nomnom
Find comprehensive JavaScript nomnom.script code examples handpicked from public code repositorys.
GitHub: alessioalex/dynroute
6 7 8 9 10 11 12 13 14 15
var opts = require('nomnom'), utils = require('../lib/utils'), dynroute = require('../dynroute'), configFile = process.env.HOME + '/.awsrc'; opts = opts.script('dynroute') .option('domain', { abbr : 'd', required : true, help : 'Domain(s) to update [required]',
6
46
6
+ 13 other calls in file
GitHub: sailorjs/sailorjs
11 12 13 14 15 16 17 18 19 20
/** * Initialize */ updateNotifier(); parser.script("sailor"); /** * version */
2
44
5
+ 13 other calls in file
GitHub: tessel/t1-cli
85 86 87 88 89 90 91 92 93 94
// Check pushing path. if (!argv.script) { usage(); } else { var pushpath = argv.script; } // Command command. var updating = false;
20
25
0
GitHub: rocktemplates/rock
5 6 7 8 9 10 11 12 13 14
var fs = require('fs-promise') var path = require('path') var nom = require('nomnom') var cl = require('cl') var opts = nom.script('rock') .option('version', {help: 'Print version and exit.', flag: true, callback: function() { return require('../package.json').version }}) .option('path', {help: 'Output path of generated directory structure.', position: 0, required: true}) .option('rock', {help: 'The rock path or Github repo.', abbr: 'r', metavar: 'ROCK', required: true}) .option('config', {help: 'The config file. Defaults to ~/.rock/rock.conf.json', abbr: 'c', default: path.join(osenv.home(), '.rock', 'rock.conf.json')})
1
14
4
+ 13 other calls in file
nomnom.options is the most popular function in nomnom (227 examples)