File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -63,20 +63,17 @@ List all installed packages.");
63
63
}
64
64
65
65
pub fn install ( ) {
66
- io:: println ( "rustpkg [options..] install [url] [target ]
66
+ io:: println ( "rustpkg [options..] install [package-ID ]
67
67
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.
74
72
75
73
Examples:
76
74
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
80
77
81
78
Options:
82
79
-c, --cfg Pass a cfg flag to the package script" ) ;
You can’t perform that action at this time.
0 commit comments