summaryrefslogtreecommitdiffstats
path: root/src/flags.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/flags.rs')
-rw-r--r--src/flags.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/flags.rs b/src/flags.rs
index bb22a4e..790b554 100644
--- a/src/flags.rs
+++ b/src/flags.rs
@@ -17,6 +17,7 @@ pub struct Flags {
pub recursion_depth: usize,
pub blocks: Vec<Block>,
pub no_symlink: bool,
+ pub total_size: bool,
}
impl Flags {
@@ -91,6 +92,7 @@ impl Flags {
None => usize::max_value(),
};
let no_symlink = matches.is_present("no-symlink");
+ let total_size = matches.is_present("total-size");
Ok(Self {
display,
@@ -125,6 +127,7 @@ impl Flags {
DirOrderFlag::from(dir_order_inputs[dir_order_inputs.len() - 1])
},
no_symlink,
+ total_size,
})
}
}
@@ -154,6 +157,7 @@ impl Default for Flags {
Block::Name,
],
no_symlink: false,
+ total_size: false,
}
}
}