Skip to content

Commit bb64a37

Browse files
committed
Renamed Commander options object
1 parent 233f67d commit bb64a37

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎server.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ program
2323
.usage('[options]')
2424
.option('--handler <path>', 'Lambda@Edge handler script.')
2525
.option('--port <number>', 'HTTP server port number.', 3000)
26-
.action(function(name) {
27-
const script = process.cwd() + '/' + name.handler;
26+
.action(function(opts) {
27+
const script = process.cwd() + '/' + opts.handler;
2828

2929
if (fs.existsSync(script)) {
3030
const {handler} = require(script);
3131

3232
if (isValidFunc(handler)) {
33-
initServer(handler, name.port);
33+
initServer(handler, opts.port);
3434
} else {
3535
throw new Error('Invalid handler method');
3636
}

0 commit comments

Comments
 (0)