You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ja...@apache.org on 2018/11/24 17:17:04 UTC

[cordova-paramedic] branch master updated: [CB-12210] require a string when parsing the plugin argument. (#19)

This is an automated email from the ASF dual-hosted git repository.

janpio pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-paramedic.git


The following commit(s) were added to refs/heads/master by this push:
     new 2b3e03f  [CB-12210] require a string when parsing the plugin argument. (#19)
2b3e03f is described below

commit 2b3e03f32a6f13af6dce9b0ed9a9417597a9349e
Author: Fil Maj <ma...@gmail.com>
AuthorDate: Sat Nov 24 11:17:00 2018 -0600

    [CB-12210] require a string when parsing the plugin argument. (#19)
---
 main.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/main.js b/main.js
index 6b95410..1b117ad 100755
--- a/main.js
+++ b/main.js
@@ -65,7 +65,9 @@ var USAGE           = "Error missing args. \n" +
     "--version : (optional) prints cordova-paramedic version and exits\n" +
     "";
 
-var argv = parseArgs(process.argv.slice(2));
+var argv = parseArgs(process.argv.slice(2), {
+    "string": ["plugin"]
+});
 var pathToParamedicConfig = util.getConfigPath(argv.config);
 
 if (argv.version) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org