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 <[email protected]> Authored: Tue Jul 16 17:52:09 2013 -0700 Committer: Anis Kadri <[email protected]> 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); } };
