From 391c3eec7394ac85413e373d4b8f82223fce28dd Mon Sep 17 00:00:00 2001 From: Shane Madden Date: Tue, 27 Feb 2024 19:06:13 -0700 Subject: [PATCH] Fix crash when config path is specified on command line --- CHANGELOG.md | 2 ++ src/setup.rs | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90b38a3..6d71140 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ Unreleased ========== +- Fix crash when specifying config file path on command line + 0.5.2 (2024-01-15) ================== diff --git a/src/setup.rs b/src/setup.rs index 1908a42..b079373 100644 --- a/src/setup.rs +++ b/src/setup.rs @@ -37,7 +37,8 @@ fn app() -> clap::Command { .short('c') .long("config") .num_args(1) - .value_name("CONFIG_FILE"), + .value_name("CONFIG_FILE") + .value_parser(clap::value_parser!(PathBuf)), ) .subcommand( clap::Command::new("build")