diff options
Diffstat (limited to 'lib/warden-core/src/config/cli/mod.rs')
| -rw-r--r-- | lib/warden-core/src/config/cli/mod.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/warden-core/src/config/cli/mod.rs b/lib/warden-core/src/config/cli/mod.rs index e0c5450..f4ffe05 100644 --- a/lib/warden-core/src/config/cli/mod.rs +++ b/lib/warden-core/src/config/cli/mod.rs @@ -57,6 +57,15 @@ pub struct Server { default_value = "5" )] pub timeout_secs: Option<u64>, + /// Pagination limit + #[arg( + long, + value_name = "PAGINATION_LIMIT", + env = "PAGINATION_LIMIT", + default_value = "50" + )] + #[arg(value_parser = clap::value_parser!(i64).range(1..))] + pub pagination_limit: Option<i64>, } impl Default for Server { @@ -70,6 +79,7 @@ impl Default for Server { )), log_dir: Some(std::env::temp_dir()), timeout_secs: Some(5), + pagination_limit: Some(50), } } } |
