Skip to content

Commit

Permalink
fix in parsing arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Mar 15, 2024
1 parent 635ea79 commit d6161b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -928,11 +928,11 @@ fn main() {
//loading one or more existing stores
load_store(args)
};
if let Some(output) = args.value_of("outputstore") {
if let Ok(Some(output)) = args.try_get_one::<String>("outputstore") {
//set output filename
store.set_filename(output);
}
if let Some(id) = args.value_of("id") {
if let Ok(Some(id)) = args.try_get_one::<String>("id") {
store = store.with_id(id.to_string());
}

Expand Down

0 comments on commit d6161b5

Please sign in to comment.