implement --index-list-limit option

This commit is contained in:
yggverse 2025-07-09 03:02:16 +03:00
parent aa2e87cb51
commit 51ffa4d93d
3 changed files with 33 additions and 10 deletions

View file

@ -121,6 +121,11 @@ pub struct Config {
#[arg(long, default_value_t = false)]
pub index_list: bool,
/// Limit torrent files quantity to index
/// * insert the `...` placeholder as the last item, with total size left
#[arg(long, default_value_t = 100)]
pub index_list_limit: usize,
/// Remove records from index older than `seconds`
#[arg(long)]
pub index_timeout: Option<i64>,