mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-16 20:57:53 +08:00
fix flag commands (#334)
This commit is contained in:
@@ -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
|
||||
|
||||
+6
-6
@@ -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);
|
||||
}
|
||||
_ => (),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user