mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
FEATURE: support only directories will be displayed. Flag -D
This commit is contained in:
@@ -19,6 +19,7 @@ pub struct Config {
|
||||
pub ignore_hidden: Option<bool>,
|
||||
pub iso: Option<bool>,
|
||||
pub min_size: Option<String>,
|
||||
pub only_dir: Option<bool>,
|
||||
}
|
||||
|
||||
impl Config {
|
||||
@@ -61,6 +62,9 @@ impl Config {
|
||||
size_from_param
|
||||
}
|
||||
}
|
||||
pub fn get_only_dir(&self, options: &ArgMatches) -> bool {
|
||||
Some(true) == self.only_dir || options.is_present("only_dir")
|
||||
}
|
||||
}
|
||||
|
||||
fn convert_min_size(input: &str, iso: bool) -> Option<usize> {
|
||||
|
||||
Reference in New Issue
Block a user