mirror of
https://github.com/YGGverse/aquatic-crawler.git
synced 2026-03-31 17:15:35 +00:00
implement --index-list-limit option
This commit is contained in:
parent
aa2e87cb51
commit
51ffa4d93d
3 changed files with 33 additions and 10 deletions
|
|
@ -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>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue