cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject git commit: CB-4153 Change to --copy-from and --link-to instead of --src and --link.
Date Fri, 31 Jan 2014 19:25:48 GMT
Updated Branches:
  refs/heads/master 1f53aafed -> 6dedf20e3


CB-4153 Change to --copy-from and --link-to instead of --src and --link.


Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/6dedf20e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/6dedf20e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/6dedf20e

Branch: refs/heads/master
Commit: 6dedf20e30dcc68b7b9e2e144acfa4d8111235bf
Parents: 1f53aaf
Author: Mark Koudritsky <kamrik@chromium.org>
Authored: Mon Jan 27 15:12:46 2014 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Fri Jan 31 14:25:15 2014 -0500

----------------------------------------------------------------------
 src/cli.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/6dedf20e/src/cli.js
----------------------------------------------------------------------
diff --git a/src/cli.js b/src/cli.js
index c45b556..c60f4ac 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -47,9 +47,9 @@ module.exports = function CLI(inputArgs) {
         .boolean('v')
         .boolean('version')
         .boolean('silent')
-        .string('src')
-        .alias('src', 'source')
-        .string('link')
+        .string('copy-from')
+        .alias('copy-from', 'src')
+        .string('link-to')
         .string('searchpath')
         .argv;
 
@@ -136,7 +136,7 @@ module.exports = function CLI(inputArgs) {
         if (args._[4]) {
             cfg = JSON.parse(args._[4]);
         }
-        var customWww = args.src || args.link;
+        var customWww = args['copy-from'] || args['link-to'];
         if (customWww) {
             if (customWww.indexOf(':') != -1) {
                 throw new CordovaError('Only local paths for custom www assets are supported.');
@@ -146,7 +146,7 @@ module.exports = function CLI(inputArgs) {
             }
             customWww = path.resolve(customWww);
             var wwwCfg = {uri: customWww};
-            if (args.link) {
+            if (args['link-to']) {
                 wwwCfg.link = true;
             }
             cfg.lib = cfg.lib || {};


Mime
View raw message