Skip to content

Commit d7c4a10

Browse files
committed
rustpkg: Clean up usage messages for install
1 parent 330378d commit d7c4a10

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

src/librustpkg/usage.rs

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,17 @@ List all installed packages.");
6363
}
6464

6565
pub fn install() {
66-
io::println("rustpkg [options..] install [url] [target]
66+
io::println("rustpkg [options..] install [package-ID]
6767
68-
Install a package from a URL by Git or cURL (FTP, HTTP, etc.).
69-
If target is provided, Git will checkout the branch or tag before
70-
continuing. If the URL is a TAR file (with or without compression),
71-
extract it before installing. If a URL isn't provided, the package will
72-
be built and installed from the current directory (which is
73-
functionally the same as `rustpkg build` and installing the result).
68+
Install the given package ID if specified. With no package ID
69+
argument, install the package in the current directory.
70+
In that case, the current directory must be a direct child of a
71+
`src` directory in a workspace.
7472
7573
Examples:
7674
rustpkg install
77-
rustpkg install git://github.com/mozilla/servo.git
78-
rustpkg install git://github.com/mozilla/servo.git v0.1.2
79-
rustpkg install http://rust-lang.org/servo-0.1.2.tar.gz
75+
rustpkg install github.com/mozilla/servo
76+
rustpkg install github.com/mozilla/servo#0.1.2
8077
8178
Options:
8279
-c, --cfg Pass a cfg flag to the package script");

0 commit comments

Comments
 (0)