Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
xqm32 committed Apr 2, 2024
1 parent a9a050e commit 4689df3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,15 @@ Here are the supported command-line options:

```
USAGE:
docuum
docuum [OPTIONS]
OPTIONS:
-d, --deletion-chunk-size <DELETION CHUNK SIZE>
Removes specified quantity of images at a time (default: 1)
-f, --fail-fast
Exits immediately on error instead of retrying
-h, --help
Prints help information
Expand Down
10 changes: 6 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ fn settings() -> io::Result<Settings> {
Arg::with_name(FAIL_FAST)
.short("f")
.long(FAIL_FAST)
.help("Prevents restarting subprocess"),
.help("Exits immediately on error instead of retrying"),
)
.get_matches();

Expand Down Expand Up @@ -280,10 +280,12 @@ fn main() {
if let Err(e) = run(&settings, &mut state, &mut first_run) {
error!("{}", e);
if settings.fail_fast {
break;
error!("Exiting due to --fail-fast");
exit(1);
} else {
error!("Retrying in 5 seconds\u{2026}");
sleep(Duration::from_secs(5));
}
info!("Retrying in 5 seconds\u{2026}");
sleep(Duration::from_secs(5));
}
}
}

0 comments on commit 4689df3

Please sign in to comment.