File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ pub async fn run(
1717 let mut params_map = params:: params_to_hashmap ( params) ;
1818 params:: apply_fields ( & mut params_map, fields) ;
1919
20- if !all_pages {
20+ if !all_pages && max_pages . is_none ( ) {
2121 let client = make_client ( api_key) ?;
2222 let result = tokio:: time:: timeout (
2323 Duration :: from_secs ( 30 ) ,
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ enum Command {
4242 /// Fetch all pages and merge array results
4343 #[ arg( long) ]
4444 all_pages : bool ,
45- /// Maximum number of pages to fetch when --all-pages is set (default: unlimited)
45+ /// Maximum number of pages to fetch; implies pagination (default: unlimited with --all-pages )
4646 #[ arg( long) ]
4747 max_pages : Option < usize > ,
4848 } ,
You can’t perform that action at this time.
0 commit comments