fix flag commands (#334)

This commit is contained in:
Clément DOUIN 2022-03-15 13:55:40 +01:00
parent 4f6f884962
commit ac8628c08c
No known key found for this signature in database
GPG key ID: 353E4A18EE0FAB72
2 changed files with 11 additions and 6 deletions

View file

@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
- Flag commands [#334]
## [0.5.9] - 2022-03-12
### Added
@ -506,5 +510,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#324]: https://github.com/soywod/himalaya/issues/324
[#329]: https://github.com/soywod/himalaya/issues/329
[#331]: https://github.com/soywod/himalaya/issues/331
[#334]: https://github.com/soywod/himalaya/issues/334
[#335]: https://github.com/soywod/himalaya/issues/335
[#338]: https://github.com/soywod/himalaya/issues/338

View file

@ -288,14 +288,14 @@ fn main() -> Result<()> {
);
}
Some(msg_args::Cmd::Flag(m)) => match m {
Some(flag_args::Cmd::Set(seq_range, flags)) => {
return flag_handlers::set(seq_range, mbox, &flags, &mut printer, backend);
Some(flag_args::Cmd::Set(seq_range, ref flags)) => {
return flag_handlers::set(seq_range, flags, mbox, &mut printer, backend);
}
Some(flag_args::Cmd::Add(seq_range, flags)) => {
return flag_handlers::add(seq_range, mbox, &flags, &mut printer, backend);
Some(flag_args::Cmd::Add(seq_range, ref flags)) => {
return flag_handlers::add(seq_range, flags, mbox, &mut printer, backend);
}
Some(flag_args::Cmd::Remove(seq_range, flags)) => {
return flag_handlers::remove(seq_range, mbox, &flags, &mut printer, backend);
Some(flag_args::Cmd::Remove(seq_range, ref flags)) => {
return flag_handlers::remove(seq_range, flags, mbox, &mut printer, backend);
}
_ => (),
},