cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject git commit: [CB-3500] fixing usage+readme on uninstall instructions.
Date Fri, 24 May 2013 02:22:59 GMT
Updated Branches:
  refs/heads/master f043c3475 -> 648694b84


[CB-3500] fixing usage+readme on uninstall instructions.


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

Branch: refs/heads/master
Commit: 648694b847f70f340ed08e852634182c7172a445
Parents: f043c34
Author: Fil Maj <maj.fil@gmail.com>
Authored: Thu May 23 19:22:53 2013 -0700
Committer: Fil Maj <maj.fil@gmail.com>
Committed: Thu May 23 19:22:53 2013 -0700

----------------------------------------------------------------------
 README.md |    8 ++++----
 main.js   |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/648694b8/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 166c39f..e45e62b 100644
--- a/README.md
+++ b/README.md
@@ -27,14 +27,14 @@ This document defines tool usage.
 
 ## Command Line Usage
 
-    plugman --install --platform <ios|android|blackberry10|wp7|wp8> --project <directory>
--plugin <name|url|path> [--plugins_dir <directory>] [--www <directory>]
[--variable <name>=<value> [--variable <name>=<value> ...]]
-    plugman --uninstall --platform <ios|android|blackberr10|wp7|wp8> --project <directory>
--plugin <name> [--www <directory>] [--plugins_dir <directory>]
+    plugman --platform <ios|android|blackberry10|wp7|wp8> --project <directory>
--plugin <name|url|path> [--plugins_dir <directory>] [--www <directory>]
[--variable <name>=<value> [--variable <name>=<value> ...]]
+    plugman --uninstall --platform <ios|android|blackberr10|wp7|wp8> --project <directory>
--plugin <id> [--www <directory>] [--plugins_dir <directory>]
 
-* `--install`: Installs a plugin into a cordova project. You must specify a platform and
cordova project location for that platform. You also must specify a plugin, with the different
`--plugin` parameter forms being:
+* Using minimum parameters, installs a plugin into a cordova project. You must specify a
platform and cordova project location for that platform. You also must specify a plugin, with
the different `--plugin` parameter forms being:
   * `name`: The directory name where the plugin contents exist. This must be an existing
directory under the `--plugins_dir` path (see below for more info).
   * `url`: A URL starting with https:// or git://, pointing to a valid git repository that
is clonable and contains a `plugin.xml` file. The contents of this repository would be copied
into the `--plugins_dir`.
   * `path`: A path to a directory containing a valid plugin which includes a `plugin.xml`
file. This path's contents will be copied into the `--plugins_dir`.
-* `--uninstall`: Uninstalls an already-`--install`'ed plugin from a cordova project
+* `--uninstall`: Uninstalls an already-`--install`'ed plugin from a cordova project. Specify
the plugin ID.
 
 Other parameters: 
 

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/648694b8/main.js
----------------------------------------------------------------------
diff --git a/main.js b/main.js
index 396f902..4da1150 100755
--- a/main.js
+++ b/main.js
@@ -81,7 +81,7 @@ 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 +
' --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 <name> [--www <directory>]
[--plugins_dir <directory>]\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('\n\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');
 }


Mime
View raw message