Use for-loop over pending args in mind-chat CLI
This commit is contained in:
parent
d3b57a8048
commit
87f815af7f
1 changed files with 1 additions and 1 deletions
|
|
@ -120,7 +120,7 @@ fn parse_client_request(cmd: &str, args: &[String]) -> Result<Request> {
|
|||
match cmd {
|
||||
"pending" => {
|
||||
let mut ack = false;
|
||||
while let Some(flag) = it.next() {
|
||||
for flag in it {
|
||||
match flag.as_str() {
|
||||
"--ack" if !ack => ack = true,
|
||||
_ => bail!("{USAGE}"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue