File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -82,19 +82,19 @@ pub(crate) struct Cli {
82
82
#[ arg( long, value_parser = duration_from_str, help = "Timeout to enforce on each attempt" ) ]
83
83
pub task_timeout : Option < Duration > ,
84
84
85
- /// Exit code to stop on.
85
+ /// Exit code to retry on.
86
86
///
87
- /// Any exit code that matches this value will stop retrying .
87
+ /// Only retry if the command exits with this code .
88
88
///
89
89
/// Accepted format is:
90
90
/// [0-9]+
91
91
///
92
92
/// Examples:
93
93
/// ```
94
- /// retry --stop- on-exit-code 2 -- bash -c "exit 2"
94
+ /// retry --on-exit-code 2 --on-exit-code 127 -- bash -c "exit 2"
95
95
/// ```
96
- #[ arg( long, help = "Exit code to stop on" ) ]
97
- pub stop_on_exit_code : Option < i32 > ,
96
+ #[ arg( long, help = "Exit code to retry on" ) ]
97
+ pub on_exit_code : Option < Vec < i32 > > ,
98
98
99
99
// TODO: enforce this is a non-empty array
100
100
/// The command to run.
You can’t perform that action at this time.
0 commit comments