summaryrefslogtreecommitdiffstats
path: root/src/app.rs
diff options
context:
space:
mode:
authorPhilipp Mildenberger <philipp.mildenberger@student.uibk.ac.at>2019-06-16 20:48:35 +0200
committerAbin Simon <abinsimon10@gmail.com>2019-07-17 10:27:59 +0000
commit744efce1b8d85966a8740d6fe5416b9d459b89ca (patch)
tree2e7b3b7f7dd7787a7d4f0b2fc16fb42fb5ef9f59 /src/app.rs
parent3facd4484083003e73978a3de688529586c8021f (diff)
added a total-size flag, that calculates the total size of directories recursively
Diffstat (limited to 'src/app.rs')
-rw-r--r--src/app.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/app.rs b/src/app.rs
index cd6709f..c386265 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -125,6 +125,12 @@ pub fn build() -> App<'static, 'static> {
.help("How to display size"),
)
.arg(
+ Arg::with_name("total-size")
+ .long("total-size")
+ .multiple(true)
+ .help("Display the total size of directories"),
+ )
+ .arg(
Arg::with_name("date")
.long("date")
.possible_value("date")