@@ -10,7 +10,7 @@ docopt!(Options, "
10
10
Update dependencies as recorded in the local lock file.
11
11
12
12
Usage:
13
- cargo update [options] [<name >]
13
+ cargo update [options] [<spec >]
14
14
15
15
Options:
16
16
-h, --help Print this message
@@ -21,22 +21,24 @@ Options:
21
21
This command requires that a `Cargo.lock` already exists as generated by
22
22
`cargo build` or related commands.
23
23
24
- If <name > is specified , then a conservative update of the lockfile will be
25
- performed. This means that only the dependency <name > will be updated. Its
26
- transitive dependencies will be updated only if <name > cannot be updated without
27
- updating dependencies. All other dependencies will remain locked at their
28
- currently recorded versions.
24
+ If <spec > is given , then a conservative update of the lockfile will be
25
+ performed. This means that only the dependency specified by <spec > will be
26
+ updated. Its transitive dependencies will be updated only if <spec > cannot be
27
+ updated without updating dependencies. All other dependencies will remain
28
+ locked at their currently recorded versions.
29
29
30
- If <name > is not specified , then all dependencies will be re-resolved and
30
+ If <spec > is not given , then all dependencies will be re-resolved and
31
31
updated.
32
- " , flag_manifest_path: Option <String >, arg_name: Option <String >)
32
+
33
+ For more information about package ids, see `cargo help pkgid`.
34
+ " , flag_manifest_path: Option <String >, arg_spec: Option <String >)
33
35
34
36
pub fn execute ( options : Options , shell : & mut MultiShell ) -> CliResult < Option < ( ) > > {
35
37
debug ! ( "executing; cmd=cargo-update; args={}" , os:: args( ) ) ;
36
38
shell. set_verbose ( options. flag_verbose ) ;
37
39
let root = try!( find_root_manifest_for_cwd ( options. flag_manifest_path ) ) ;
38
40
39
- ops:: update_lockfile ( & root, shell, options. arg_name , options. flag_aggressive )
41
+ ops:: update_lockfile ( & root, shell, options. arg_spec , options. flag_aggressive )
40
42
. map ( |_| None ) . map_err ( |err| CliError :: from_boxed ( err, 101 ) )
41
43
}
42
44
0 commit comments