mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
fix: issue 386 --only-file displays full paths even without --full-paths
This commit is contained in:
+1
-2
@@ -52,10 +52,9 @@ impl Config {
|
|||||||
Some(true) == self.ignore_hidden || options.get_flag("ignore_hidden")
|
Some(true) == self.ignore_hidden || options.get_flag("ignore_hidden")
|
||||||
}
|
}
|
||||||
pub fn get_full_paths(&self, options: &ArgMatches) -> bool {
|
pub fn get_full_paths(&self, options: &ArgMatches) -> bool {
|
||||||
// If we are only showing files, always show full paths
|
|
||||||
Some(true) == self.display_full_paths
|
Some(true) == self.display_full_paths
|
||||||
|| options.get_flag("display_full_paths")
|
|| options.get_flag("display_full_paths")
|
||||||
|| self.get_only_file(options)
|
// || self.get_only_file(options)
|
||||||
}
|
}
|
||||||
pub fn get_reverse(&self, options: &ArgMatches) -> bool {
|
pub fn get_reverse(&self, options: &ArgMatches) -> bool {
|
||||||
Some(true) == self.reverse || options.get_flag("reverse")
|
Some(true) == self.reverse || options.get_flag("reverse")
|
||||||
|
|||||||
Reference in New Issue
Block a user