diff --git a/remotefs-fuse-cli/src/cli.rs b/remotefs-fuse-cli/src/cli.rs index 61b8601..d25b232 100644 --- a/remotefs-fuse-cli/src/cli.rs +++ b/remotefs-fuse-cli/src/cli.rs @@ -40,6 +40,7 @@ pub struct CliArgs { #[argh(option)] pub to: PathBuf, /// name of mounted filesystem volume + #[cfg(unix)] #[argh(option)] pub volume: String, /// uid to use for the mounted filesystem diff --git a/remotefs-fuse-cli/src/main.rs b/remotefs-fuse-cli/src/main.rs index 268a9d2..f1376d9 100644 --- a/remotefs-fuse-cli/src/main.rs +++ b/remotefs-fuse-cli/src/main.rs @@ -6,6 +6,7 @@ use remotefs_fuse::{Mount, MountOption}; fn main() -> anyhow::Result<()> { let args = argh::from_env::(); args.init_logger()?; + #[cfg(unix)] let volume = args.volume.clone(); let mount_path = args.to.clone();