mirror of
https://github.com/lsd-rs/lsd
synced 2024-12-14 14:12:31 +00:00
use ValueHint::AnyPath on FILE argument
This fixes an issue with path completion in ZSH.
This commit is contained in:
parent
a2cabdf5b9
commit
0d8c2c4d9c
1 changed files with 7 additions and 2 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue