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/28 02:55:42 UTC

[20/50] git commit: adding search results

adding search results


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

Branch: refs/heads/master
Commit: 7772f2a786cb5ba9edf191583ad6bf7e1ed174a3
Parents: 97ea291
Author: Anis Kadri <an...@apache.org>
Authored: Wed Jun 19 14:50:33 2013 -0700
Committer: Anis Kadri <an...@apache.org>
Committed: Thu Jul 11 13:55:45 2013 -0700

----------------------------------------------------------------------
 main.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/7772f2a7/main.js
----------------------------------------------------------------------
diff --git a/main.js b/main.js
index dc524f4..6f26d2a 100755
--- a/main.js
+++ b/main.js
@@ -120,7 +120,7 @@ else if (cli_opts.search) {
                 });
             });
 }
-else {
+else if(cli_opts.install) {
     var cli_variables = {}
     if (cli_opts.variable) {
         cli_opts.variable.forEach(function (variable) {
@@ -135,4 +135,6 @@ subdir: '.',
         www_dir: cli_opts.www
     };
     plugman.install(cli_opts.platform, cli_opts.project, cli_opts.plugin, plugins_dir, opts);
+} else {
+    console.log(plugman.help());
 }