forked from Strider-CD/strider-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
executable file
·35 lines (30 loc) · 725 Bytes
/
index.js
File metadata and controls
executable file
·35 lines (30 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
var parser = require('nomnom');
module.exports = function(deps) {
var start = require('./start')(deps);
parser
.option('version', {
abbr: 'v',
flag: true,
help: 'Print version and exit',
callback: function() {
return deps.version;
}
})
.option('plugin_path', {
abbr: 'm',
help: 'Specify path to plugins (defaults to node_modules)'
})
var commands = require('./commands')
commands.setup(deps, parser)
parser.nocommand('start')
.option('no-cluster', {
help: "Bypass the cluster module when starting Strider. Disables self-restart."
})
.callback(function(opts) {
start(opts.extension_path, opts);
});
return {
parser: parser,
start: start
}
}