diff options
author | Canop <cano.petrole@gmail.com> | 2022-09-23 14:32:56 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2022-09-23 14:32:56 +0200 |
commit | 3055c88a481119e40ea072c374d21a8fd08b5bb6 (patch) | |
tree | b707f3b3e62a4e81d5424dd35fc5623eae080a82 /src/cli/args.rs | |
parent | fbff9004dbec021d4d7dbd2c61efe5fc8a475cbd (diff) |
--sort-by-type-dirs-first --sort-by-type-dirs-last
Fix #602
Diffstat (limited to 'src/cli/args.rs')
-rw-r--r-- | src/cli/args.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cli/args.rs b/src/cli/args.rs index 8ef4b89..5f85a02 100644 --- a/src/cli/args.rs +++ b/src/cli/args.rs @@ -88,6 +88,18 @@ pub struct Args { /// Sort by size (only show one level of the tree) pub sort_by_size: bool, + #[clap(long, action)] + /// Same as sort-by-type-dirs-first + pub sort_by_type: bool, + + #[clap(long, action)] + /// Sort by type, directories first (only show one level of the tree) + pub sort_by_type_dirs_first: bool, + + #[clap(long, action)] + /// Sort by type, directories last (only show one level of the tree) + pub sort_by_type_dirs_last: bool, + /// Sort by size, show ignored and hidden files #[clap(short, long, action)] pub whale_spotting: bool, |