use ValueHint::AnyPath on FILE argument

This fixes an issue with path completion in ZSH.
This commit is contained in:
Doug Elkin 2022-09-08 23:33:58 -04:00 committed by Abin Simon
parent a2cabdf5b9
commit 0d8c2c4d9c

View file

@ -1,10 +1,15 @@
use clap::{App, Arg};
use clap::{App, Arg, ValueHint};
pub fn build() -> App<'static> {
App::new("lsd")
.version(env!("CARGO_PKG_VERSION"))
.about(env!("CARGO_PKG_DESCRIPTION"))
.arg(Arg::with_name("FILE").multiple(true).default_value("."))
.arg(
Arg::with_name("FILE")
.multiple(true)
.default_value(".")
.value_hint(ValueHint::AnyPath),
)
.arg(
Arg::with_name("all")
.short('a')