query: add count param

This commit is contained in:
nym21
2025-06-08 18:26:59 +02:00
parent 5a6b71cbeb
commit e0bf1d736f
3 changed files with 20 additions and 3 deletions

View File

@@ -23,8 +23,11 @@ pub struct Params {
pub from: Option<i64>,
#[clap(short, long, allow_hyphen_values = true)]
#[serde(default, alias = "t")]
/// Inclusive ending index, if negative will be from the end
/// Exclusive ending index, if negative will be from the end, overrides 'count'
pub to: Option<i64>,
#[serde(default, alias = "c")]
/// Number of values
pub count: Option<usize>,
#[clap(short = 'F', long)]
/// Format of the output
pub format: Option<Format>,