Skip to content

Commit

Permalink
update validator to value_parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Patro committed Jul 14, 2022
1 parent e796aeb commit 2b3f1d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,9 @@ fn main() -> anyhow::Result<()> {
// (as below), requesting just the name used, or both at the same time
if let Some(t) = opts.subcommand_matches("generate-permit-list") {
let input_dir: String = t
.get_one("input")
.expect("no input directory specified");
.get_one::<String>("input")
.expect("no input directory specified")
.to_string();
let output_dir: String = t
.get_one::<String>("output-dir")
.expect("no input directory specified")
Expand Down

0 comments on commit 2b3f1d2

Please sign in to comment.