cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [39/50] git commit: removing --plugin option
Date Sun, 28 Jul 2013 00:56:01 GMT
removing --plugin option


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/365ac3ce
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/365ac3ce
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/365ac3ce

Branch: refs/heads/master
Commit: 365ac3ce7fd84ded738d825f24fc50981719495f
Parents: 241031d
Author: Anis Kadri <anis@apache.org>
Authored: Tue Jul 16 17:52:09 2013 -0700
Committer: Anis Kadri <anis@apache.org>
Committed: Tue Jul 16 17:52:09 2013 -0700

----------------------------------------------------------------------
 plugman.js | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/365ac3ce/plugman.js
----------------------------------------------------------------------
diff --git a/plugman.js b/plugman.js
index b0dbe03..716c5ef 100755
--- a/plugman.js
+++ b/plugman.js
@@ -74,17 +74,19 @@ plugman.commands =  {
     },
 
     'publish'  : function(cli_opts) {
-        if(!cli_opts.plugin) {
+        var plugin_path = cli_opts.argv.remain; 
+        if(!plugin_path) {
             return console.log(plugman.help());
         }
-        plugman.publish(new Array(cli_opts.plugin));
+        plugman.publish(plugin_path);
     },
 
     'unpublish': function(cli_opts) {
-        if(!cli_opts.plugin) {
+        var plugin = cli_opts.argv.remain; 
+        if(!plugin) {
             return console.log(plugman.help());
         }
-        plugman.unpublish(new Array(cli_opts.plugin));
+        plugman.unpublish(plugin);
     }
 };
 


Mime
View raw message