Skip to content

Commit

Permalink
fix(value/slice): multi value flags now append instead of overwriting
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaba505 committed Sep 13, 2020
1 parent 26a2947 commit c5f2036
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/value.rs
Expand Up @@ -145,6 +145,7 @@ where
fn set(&mut self, val: string::String) -> Result<(), ValueError> {
if !self.changed {
self.vals = Vec::with_capacity(self.vals.capacity());
self.changed = true;
}
val.trim_matches('"').split(',').try_for_each(|v| {
let res = v.parse::<T>();
Expand Down

0 comments on commit c5f2036

Please sign in to comment.