You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2013/07/17 02:52:15 UTC

git commit: removing --plugin option

Updated Branches:
  refs/heads/plugman-registry 241031d26 -> 365ac3ce7


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/plugman-registry
Commit: 365ac3ce7fd84ded738d825f24fc50981719495f
Parents: 241031d
Author: Anis Kadri <an...@apache.org>
Authored: Tue Jul 16 17:52:09 2013 -0700
Committer: Anis Kadri <an...@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);
     }
 };