Skip to content

Commit abb725b

Browse files
committed
Document that -e isn't necessary with -W
1 parent 2621343 commit abb725b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ lambdaLocal.execute({
134134

135135
### Available Arguments
136136
* `-l, --lambda-path <lambda index path>` (required) Specify Lambda function file name.
137-
* `-e, --event-path <event path>` (required) Specify event data file name.
137+
* `-e, --event-path <event path>` (required --watch is not in use) Specify event data file name.
138138
* `-h, --handler <handler name>` (optional) Lambda function handler name. Default is "handler".
139139
* `-t, --timeout <timeout>` (optional) Seconds until lambda function timeout. Default is 3 seconds.
140140
* `-r, --region <aws region>` (optional) Sets the AWS region, defaults to us-east-1.

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import utils = require('./lib/utils');
1717
.name('lambda-local')
1818
.version(lambdaLocal.version)
1919
.option('-l, --lambda-path <lambda index path>', '(required) Lambda function file name.')
20-
.option('-e, --event-path <path>', '(required) Event data file name.')
20+
.option('-e, --event-path <path>', '(required if --watch is not in use) Event data file name.')
2121
.option('-h, --handler <handler name>',
2222
'(optional) Lambda function handler name. Default is \'handler\'.')
2323
.option('-t, --timeout <timeout seconds>',

0 commit comments

Comments
 (0)