From 774ed8b90919206a8f339924eb2e24e68e8493b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Unneb=C3=A4ck?= Date: Fri, 9 Feb 2018 13:02:21 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20command=20line=20args=20pa?= =?UTF-8?q?rsing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/app.js b/app.js index 80728ec..9b3a5ee 100755 --- a/app.js +++ b/app.js @@ -17,19 +17,17 @@ const usage = ` Scandium usage: - scandium [global options] create [--swagger=] [--deploy-to=] [--role=] - scandium [global options] update [--swagger=] [--deploy-to=] --rest-api-id= + scandium [options] create [--swagger=] [--deploy-to=] [--role=] + scandium [options] update [--swagger=] [--deploy-to=] --rest-api-id= options: - Name of the Lambda function. - --role ARN of the IAM role that Lambda assumes when it executes your function. - --swagger Path to Swagger API definition used to configure AWS API Gateway. - --rest-api-id ID of the AWS API Gateway rest api to update (printed by the "create" command). - --deploy-to Deploy the API to the specified stage, and make it callable from the Internet. - -global options: - --help Show this help, then exit. - --verbose Print verbose output. + Name of the Lambda function. + --role= ARN of the IAM role that Lambda assumes when it executes your function. + --swagger= Path to Swagger API definition used to configure AWS API Gateway. + --rest-api-id= ID of the AWS API Gateway rest api to update (printed by the "create" command). + --deploy-to= Deploy the API to the specified stage, and make it callable from the Internet. + --help Show this help, then exit. + --verbose Print verbose output. ` async function main () {