fix page size for search cmd

This commit is contained in:
Clément DOUIN 2021-04-04 17:38:40 +02:00
parent 248e537bc1
commit 9602fc0b5b
No known key found for this signature in database
GPG key ID: 69C9B9CFFDEE2DEF

View file

@ -177,7 +177,7 @@ pub fn msg_matches(matches: &ArgMatches) -> Result<()> {
if let Some(matches) = matches.subcommand_matches("search") {
let mut imap_conn = ImapConnector::new(&account)?;
let page_size: usize = matches.value_of("size").unwrap().parse().unwrap();
let page_size: usize = matches.value_of("page-size").unwrap().parse().unwrap();
let page: usize = matches.value_of("page").unwrap().parse().unwrap();
let query = matches
.values_of("query")