diff --git a/src/params.rs b/src/params.rs index c37dcfb..a90b3da 100644 --- a/src/params.rs +++ b/src/params.rs @@ -1,9 +1,11 @@ use std::ffi::OsString; -use std::fs; use std::path::PathBuf; -use std::fs::File; +#[cfg(unix)] +use std::fs::{self, File}; +#[cfg(unix)] use std::io::stdin; +#[cfg(unix)] use std::os::fd::AsFd; use regex::Regex; @@ -185,18 +187,21 @@ pub fn parse_params>(opts: I) -> Result