Skip to content

Commit 75fcc34

Browse files
committed
Use PathBuf for --script.
1 parent 29fdb9b commit 75fcc34

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/main.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,12 @@ struct Opts {
139139
#[structopt(long = "force-install", help = "force installation over existing artifacts")]
140140
force_install: bool,
141141

142-
#[structopt(long = "script", help = "script to run instead of cargo to test for regression")]
143-
script: Option<String>,
142+
#[structopt(
143+
long = "script",
144+
help = "script to run instead of cargo to test for regression",
145+
parse(from_os_str)
146+
)]
147+
script: Option<PathBuf>,
144148
}
145149

146150
#[derive(Clone, Debug)]

0 commit comments

Comments
 (0)