Skip to content

Commit

Permalink
Correct tests, reveal real problem
Browse files Browse the repository at this point in the history
Dehack, revert clap-rs#1856

Fix incorrect error message.

Comment out regressed logic

Fix clippy

Minor redundant logic cleanup

Fix clippy

dot fix

Clearer error processing

Acc a request

Flow reordering

Remove redundant ClapResult in some functions

Flow optimize

Integrate workflow

Branch simpification

Simplify possible subcommand

Optimize branch, more comments

Eliminate unreachable branch

comment fix

Add comments for some internal app settings

Resolve a TODO

Unused clippy allow
  • Loading branch information
ldm0 committed Feb 5, 2021
1 parent f88956d commit d2e288a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1033,11 +1033,7 @@ impl<'help, 'app> Parser<'help, 'app> {
.iter()
.map(|x| x.to_str().expect(INVALID_UTF8))
.collect();
Err(self.did_you_mean_error(
arg.to_str().expect(INVALID_UTF8),
matcher,
&remaining_args,
))
Err(self.did_you_mean_error(arg.to_str().expect(INVALID_UTF8), matcher, &remaining_args))
}
}

Expand Down

0 comments on commit d2e288a

Please sign in to comment.