File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -448,12 +448,12 @@ Arguments:
448448
449449 Flags {
450450 verbose : matches. opt_count ( "verbose" ) ,
451- stage : matches. opt_str ( "stage" ) . map ( |j| j. parse ( ) . unwrap ( ) ) ,
451+ stage : matches. opt_str ( "stage" ) . map ( |j| j. parse ( ) . expect ( "`stage` should be a number" ) ) ,
452452 dry_run : matches. opt_present ( "dry-run" ) ,
453453 on_fail : matches. opt_str ( "on-fail" ) ,
454454 rustc_error_format : matches. opt_str ( "error-format" ) ,
455455 keep_stage : matches. opt_strs ( "keep-stage" )
456- . into_iter ( ) . map ( |j| j. parse ( ) . unwrap ( ) )
456+ . into_iter ( ) . map ( |j| j. parse ( ) . expect ( "`keep-stage` should be a number" ) )
457457 . collect ( ) ,
458458 host : split ( & matches. opt_strs ( "host" ) )
459459 . into_iter ( )
@@ -464,7 +464,7 @@ Arguments:
464464 . map ( |x| INTERNER . intern_string ( x) )
465465 . collect :: < Vec < _ > > ( ) ,
466466 config : cfg_file,
467- jobs : matches. opt_str ( "jobs" ) . map ( |j| j. parse ( ) . unwrap ( ) ) ,
467+ jobs : matches. opt_str ( "jobs" ) . map ( |j| j. parse ( ) . expect ( "`jobs` should be a number" ) ) ,
468468 cmd,
469469 incremental : matches. opt_present ( "incremental" ) ,
470470 exclude : split ( & matches. opt_strs ( "exclude" ) )
You can’t perform that action at this time.
0 commit comments