summaryrefslogtreecommitdiffstats
path: root/src/options.rs
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2020-02-22 13:48:16 +0800
committerSebastian Thiel <sebastian.thiel@icloud.com>2020-02-22 13:48:16 +0800
commitdb514fe58c234ad312156814ba6f5ee7b7af0b60 (patch)
tree68b049fd8667d36c88459d465310d26e1ea4dcf9 /src/options.rs
parenta6a4cf3705ba764ca0862fd3faaf0f7df31ac28d (diff)
Rename 'count-links' to more descriptive 'count-hard-links'
Diffstat (limited to 'src/options.rs')
-rw-r--r--src/options.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/options.rs b/src/options.rs
index e3e44a2..1a06e45 100644
--- a/src/options.rs
+++ b/src/options.rs
@@ -49,16 +49,16 @@ pub struct Args {
/// GiB - only gibibytes
/// MB - only megabytes
/// MiB - only mebibytes
- #[structopt(short = "f", long = "format")]
+ #[structopt(short = "f", long)]
pub format: Option<ByteFormat>,
/// Display apparent size instead of disk usage.
- #[structopt(short = "A", long = "apparent-size")]
+ #[structopt(short = "A", long)]
pub apparent_size: bool,
/// Count hard-linked files each time they are seen
- #[structopt(short = "l", long = "count-links")]
- pub count_links: bool,
+ #[structopt(short = "l", long)]
+ pub count_hard_links: bool,
/// One or more input files or directories. If unset, we will use all entries in the current working directory.
#[structopt(parse(from_os_str))]
@@ -82,10 +82,10 @@ pub enum Command {
statistics: bool,
/// If set, paths will be printed in their order of occurrence on the command-line.
/// Otherwise they are sorted by their size in bytes, ascending.
- #[structopt(long = "no-sort")]
+ #[structopt(long)]
no_sort: bool,
/// If set, no total column will be computed for multiple inputs
- #[structopt(long = "no-total")]
+ #[structopt(long)]
no_total: bool,
/// One or more input files or directories. If unset, we will use all entries in the current working directory.
#[structopt(parse(from_os_str))]