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:34 UTC

[12/50] git commit: added help

added help


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

Branch: refs/heads/master
Commit: c9a42d689e2394c344a3348db7777f0f916e5b54
Parents: 37cb50c bf97513
Author: Anis Kadri <an...@apache.org>
Authored: Thu Jul 11 13:28:50 2013 -0700
Committer: Anis Kadri <an...@apache.org>
Committed: Thu Jul 11 13:28:50 2013 -0700

----------------------------------------------------------------------
 main.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/c9a42d68/main.js
----------------------------------------------------------------------
diff --cc main.js
index 153bea8,a0cd602..702fde6
--- a/main.js
+++ b/main.js
@@@ -108,5 -104,18 +108,5 @@@ else if(cli_opts.install) 
      };
      plugman.install(cli_opts.platform, cli_opts.project, cli_opts.plugin, plugins_dir, opts);
  } else {
--  printUsage();
 -}
 -
 -function printUsage() {
 -    platforms = known_opts.platform.join('|');
 -    console.log('Usage\n-----');
 -    console.log('Install a plugin (will fetch if cannot be found):\n\t' + package.name + ' --install --platform <'+ platforms +'> --project <directory> --plugin <name|path|url> [--www <directory>] [--plugins_dir <directory>] [--variable <name>=<value>]\n');
 -    console.log('Uninstall a plugin:\n\t' + package.name + ' --uninstall --platform <'+ platforms +'> --project <directory> --plugin <id> [--www <directory>] [--plugins_dir <directory>]\n');
 -    console.log('\t--plugins_dir defaults to <project>/cordova/plugins, but can be any directory containing a subdirectory for each plugin');
 -    console.log('\n\t--www defaults to the project\'s www folder, but can be any directory where web assets should be installed into\n');
 -    console.log('Add a user account to the registry:\n\t' + package.name + ' --adduser\n');
 -    console.log('Publish a plugin:\n\t' + package.name + ' --publish --plugin plugin_directory\n');
 -    console.log('Unpublish a plugin:\n\t' + package.name + ' --unpublish --plugin plugin_name@version\n');
 -    console.log('Search for plugins:\n\t' + package.name + ' --search keyword1,keyword2,...\n');
++  plugman.help();
  }