diff options
author | Dean Li <deantvv@gmail.com> | 2021-06-03 13:26:27 +0000 |
---|---|---|
committer | Dean Li <deantvv@gmail.com> | 2021-08-30 11:55:58 +0000 |
commit | 7944db336ca3ef0338369091af60aa2b15789952 (patch) | |
tree | 98d5c2a9e9a007a569710d60328e32713d832b60 /src/args.rs | |
parent | Add CHANGELOG entry for binding behavior revamp (diff) | |
download | miniserve-7944db336ca3ef0338369091af60aa2b15789952.tar.gz miniserve-7944db336ca3ef0338369091af60aa2b15789952.zip |
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
Diffstat (limited to 'src/args.rs')
-rw-r--r-- | src/args.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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<HeaderMap>, + /// 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, |