about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2013-07-24 18:39:25 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2013-07-24 18:39:25 -0700
commitd7c4a10fba7fca3d02ea7fb91ed7b00dea7b96f5 (patch)
tree54f4735e549af8c7b3dbdbed71e5ead7b473323e
parent330378d1a1a97be85f1150242da277c00b7270f5 (diff)
downloadrust-d7c4a10fba7fca3d02ea7fb91ed7b00dea7b96f5.tar.gz
rust-d7c4a10fba7fca3d02ea7fb91ed7b00dea7b96f5.zip
rustpkg: Clean up usage messages for install
-rw-r--r--src/librustpkg/usage.rs17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/librustpkg/usage.rs b/src/librustpkg/usage.rs
index 87ab3882df1..f5ac82b5684 100644
--- a/src/librustpkg/usage.rs
+++ b/src/librustpkg/usage.rs
@@ -63,20 +63,17 @@ List all installed packages.");
 }
 
 pub fn install() {
-    io::println("rustpkg [options..] install [url] [target]
+    io::println("rustpkg [options..] install [package-ID]
 
-Install a package from a URL by Git or cURL (FTP, HTTP, etc.).
-If target is provided, Git will checkout the branch or tag before
-continuing. If the URL is a TAR file (with or without compression),
-extract it before installing. If a URL isn't provided, the package will
-be built and installed from the current directory (which is
-functionally the same as `rustpkg build` and installing the result).
+Install the given package ID if specified. With no package ID
+argument, install the package in the current directory.
+In that case, the current directory must be a direct child of a
+`src` directory in a workspace.
 
 Examples:
     rustpkg install
-    rustpkg install git://github.com/mozilla/servo.git
-    rustpkg install git://github.com/mozilla/servo.git v0.1.2
-    rustpkg install http://rust-lang.org/servo-0.1.2.tar.gz
+    rustpkg install github.com/mozilla/servo
+    rustpkg install github.com/mozilla/servo#0.1.2
 
 Options:
     -c, --cfg      Pass a cfg flag to the package script");