@@ -10,7 +10,7 @@ docopt!(Options, "
1010Update dependencies as recorded in the local lock file.
1111
1212Usage:
13- cargo update [options] [<name >]
13+ cargo update [options] [<spec >]
1414
1515Options:
1616 -h, --help Print this message
@@ -21,22 +21,24 @@ Options:
2121This command requires that a `Cargo.lock` already exists as generated by
2222`cargo build` or related commands.
2323
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.
2929
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
3131updated.
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 >)
3335
3436pub fn execute ( options : Options , shell : & mut MultiShell ) -> CliResult < Option < ( ) > > {
3537 debug ! ( "executing; cmd=cargo-update; args={}" , os:: args( ) ) ;
3638 shell. set_verbose ( options. flag_verbose ) ;
3739 let root = try!( find_root_manifest_for_cwd ( options. flag_manifest_path ) ) ;
3840
39- ops:: update_lockfile ( & root, shell, options. arg_name , options. flag_aggressive )
41+ ops:: update_lockfile ( & root, shell, options. arg_spec , options. flag_aggressive )
4042 . map ( |_| None ) . map_err ( |err| CliError :: from_boxed ( err, 101 ) )
4143}
4244
0 commit comments