mirror of
https://github.com/YGGverse/btracker.git
synced 2026-04-01 01:25:33 +00:00
implement print_version argument option
This commit is contained in:
parent
e493ecdc36
commit
4fd41feeaa
3 changed files with 11 additions and 1 deletions
|
|
@ -42,6 +42,10 @@ pub struct Config {
|
|||
#[arg(long, default_value_t = 20)]
|
||||
pub list_limit: usize,
|
||||
|
||||
/// Show crate version in the catalog (tooltip to the GitHub link)
|
||||
#[arg(long, default_value_t = true)]
|
||||
pub print_version: bool,
|
||||
|
||||
/// Default capacity (estimated torrents in the `preload` directory)
|
||||
#[arg(long, default_value_t = 1000)]
|
||||
pub capacity: usize,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue