File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -453,11 +453,15 @@ fn update_precise_without_package() {
453
453
Package :: new ( "serde" , "0.3.0" ) . publish ( ) ;
454
454
455
455
p. cargo ( "update --precise 0.3.0" )
456
+ . with_status ( 1 )
456
457
. with_stderr (
457
458
"\
458
- [WARNING] precise is only supported with \" --package <SPEC>\" , this will become a hard error in a future release.
459
- [UPDATING] `[..]` index
460
- [UPDATING] serde v0.2.0 -> v0.2.1
459
+ [ERROR] The following required arguments were not provided:
460
+ --package [<SPEC>]
461
+
462
+ Usage: cargo[EXE] update --package [<SPEC>] --precise <PRECISE>
463
+
464
+ For more information try '--help'
461
465
" ,
462
466
)
463
467
. run ( ) ;
@@ -525,11 +529,15 @@ fn update_aggressive_without_package() {
525
529
Package :: new ( "serde" , "0.2.1" ) . publish ( ) ;
526
530
527
531
p. cargo ( "update --aggressive" )
532
+ . with_status ( 1 )
528
533
. with_stderr (
529
534
"\
530
- [WARNING] aggressive is only supported with \" --package <SPEC>\" , this will become a hard error in a future release.
531
- [UPDATING] `[..]` index
532
- [UPDATING] serde v0.2.0 -> v0.2.1
535
+ [ERROR] The following required arguments were not provided:
536
+ --package [<SPEC>]
537
+
538
+ Usage: cargo[EXE] update --package [<SPEC>] --aggressive
539
+
540
+ For more information try '--help'
533
541
" ,
534
542
)
535
543
. run ( ) ;
You can’t perform that action at this time.
0 commit comments