mirror of
https://github.com/soywod/himalaya.git
synced 2024-11-25 04:20:22 +00:00
fix flag commands (#334)
This commit is contained in:
parent
4f6f884962
commit
ac8628c08c
2 changed files with 11 additions and 6 deletions
|
@ -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
|
||||
|
|
12
src/main.rs
12
src/main.rs
|
@ -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);
|
||||
}
|
||||
_ => (),
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue