You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by mm...@apache.org on 2014/05/07 20:43:03 UTC
git commit: CB-6649 Removing experimental flag from positional
arguments
Repository: cordova-cli
Updated Branches:
refs/heads/master 17daa3454 -> 6acfe7b83
CB-6649 Removing experimental flag from positional arguments
Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/6acfe7b8
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/6acfe7b8
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/6acfe7b8
Branch: refs/heads/master
Commit: 6acfe7b83870d45d1e7a54d6c2d89eb019186f61
Parents: 17daa34
Author: Michal Mocny <mm...@gmail.com>
Authored: Wed May 7 14:36:49 2014 -0400
Committer: Michal Mocny <mm...@gmail.com>
Committed: Wed May 7 14:42:50 2014 -0400
----------------------------------------------------------------------
src/cli.js | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/6acfe7b8/src/cli.js
----------------------------------------------------------------------
diff --git a/src/cli.js b/src/cli.js
index adfea88..762cfaa 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -109,6 +109,10 @@ module.exports = function CLI(inputArgs) {
}
}
+ if (opts.experimental) {
+ tokens.splice(tokens.indexOf("--experimental"), 1);
+ }
+
var cmd = tokens && tokens.length ? tokens.splice(0,1) : undefined;
if (cmd === undefined) {
return help();