mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 23:04:23 +00:00
Corectly handle --foo==a (value is =a
)
This commit is contained in:
parent
4d3760a0b3
commit
4ce2a02f78
1 changed files with 2 additions and 5 deletions
|
@ -51,14 +51,11 @@ impl OsStrExt2 for OsStr {
|
|||
if b == &byte {
|
||||
return (
|
||||
OsStr::from_bytes(&self.as_bytes()[..i]),
|
||||
OsStr::from_bytes(&self.as_bytes()[i + 1..]),
|
||||
OsStr::from_bytes(&self.as_bytes()[i..]),
|
||||
);
|
||||
}
|
||||
}
|
||||
(
|
||||
&*self,
|
||||
OsStr::from_bytes(&self.as_bytes()[self.len()..self.len()]),
|
||||
)
|
||||
(&*self, OsStr::from_bytes(&[]))
|
||||
}
|
||||
|
||||
fn trim_start_matches(&self, byte: u8) -> &OsStr {
|
||||
|
|
Loading…
Reference in a new issue