Skip to content

Commit f595d25

Browse files
add as a Vec
1 parent 24dd889 commit f595d25

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/cli.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,19 @@ pub(crate) struct Cli {
8282
#[arg(long, value_parser = duration_from_str, help = "Timeout to enforce on each attempt")]
8383
pub task_timeout: Option<Duration>,
8484

85-
/// Exit code to stop on.
85+
/// Exit code to retry on.
8686
///
87-
/// Any exit code that matches this value will stop retrying.
87+
/// Only retry if the command exits with this code.
8888
///
8989
/// Accepted format is:
9090
/// [0-9]+
9191
///
9292
/// Examples:
9393
/// ```
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"
9595
/// ```
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>>,
9898

9999
// TODO: enforce this is a non-empty array
100100
/// The command to run.

0 commit comments

Comments
 (0)