From b149b1a621a62f55f17c473a029158f7fd5bb6f3 Mon Sep 17 00:00:00 2001 From: Daniel Carl Jones Date: Fri, 13 Jan 2023 15:26:43 +0000 Subject: [PATCH] Add value_hint for mount_point arg --- s3-file-connector/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/s3-file-connector/src/main.rs b/s3-file-connector/src/main.rs index 4f692a8a4..3c4451368 100644 --- a/s3-file-connector/src/main.rs +++ b/s3-file-connector/src/main.rs @@ -3,7 +3,7 @@ use std::path::PathBuf; use anyhow::anyhow; use anyhow::Context as _; use aws_crt_s3::common::rust_log_adapter::RustLogAdapter; -use clap::Parser; +use clap::{Parser, ValueHint}; use fuser::{BackgroundSession, MountOption, Session}; use s3_client::{HeadBucketError, S3Client, S3ClientConfig, S3RequestError}; @@ -39,7 +39,7 @@ struct CliArgs { #[clap(help = "Name of bucket to mount")] pub bucket_name: String, - #[clap(help = "Mount point for file system")] + #[clap(help = "Mount point for file system", value_hint = ValueHint::DirPath)] pub mount_point: PathBuf, #[clap(