File tree 2 files changed +13
-6
lines changed
2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,13 @@ pub fn cli() -> Command {
9
9
. arg_quiet ( )
10
10
. arg ( flag ( "workspace" , "Only update the workspace packages" ) . short ( 'w' ) )
11
11
. arg_package_spec_simple ( "Package to update" )
12
- . arg ( flag (
13
- "aggressive" ,
14
- "Force updating all dependencies of SPEC as well when used with -p" ,
15
- ) )
12
+ . arg (
13
+ flag (
14
+ "aggressive" ,
15
+ "Force updating all dependencies of SPEC as well when used with -p" ,
16
+ )
17
+ . conflicts_with ( "precise" ) ,
18
+ )
16
19
. arg_dry_run ( "Don't actually write the lockfile" )
17
20
. arg (
18
21
opt (
Original file line number Diff line number Diff line change @@ -491,10 +491,14 @@ fn update_aggressive_conflicts_with_precise() {
491
491
Package :: new ( "serde" , "0.2.2" ) . dep ( "log" , "0.1" ) . publish ( ) ;
492
492
493
493
p. cargo ( "update -p serde:0.2.1 --precise 0.2.2 --aggressive" )
494
- . with_status ( 101 )
494
+ . with_status ( 1 )
495
495
. with_stderr (
496
496
"\
497
- error: cannot specify both aggressive and precise simultaneously
497
+ error: the argument '--precise <PRECISE>' cannot be used with '--aggressive'
498
+
499
+ Usage: cargo update --package [<SPEC>] --precise <PRECISE>
500
+
501
+ For more information, try '--help'.
498
502
" ,
499
503
)
500
504
. run ( ) ;
You can’t perform that action at this time.
0 commit comments