From 7944db336ca3ef0338369091af60aa2b15789952 Mon Sep 17 00:00:00 2001 From: Dean Li Date: Thu, 3 Jun 2021 21:26:27 +0800 Subject: Implement show symlink destination Add option `show_symlink_info` to represent show symlink info or not. (Default to no) Show symlink destination after symlink symbol in directory listing Resemble `ls -l` and also the short argument select for this feature is also `-l`. Basic testing is included. Related to #499 --- src/args.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/args.rs') diff --git a/src/args.rs b/src/args.rs index 9569ca3..5467573 100644 --- a/src/args.rs +++ b/src/args.rs @@ -135,6 +135,10 @@ pub struct CliArgs { )] pub header: Vec, + /// Show symlink info + #[clap(short = 'l', long = "show-symlink-info")] + pub show_symlink_info: bool, + /// Hide version footer #[clap(short = 'F', long = "hide-version-footer")] pub hide_version_footer: bool, -- cgit v1.2.3