summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2020-07-02 11:16:34 +0800
committerSebastian Thiel <sebastian.thiel@icloud.com>2020-07-02 11:16:34 +0800
commitfddc8cbcadb50a6ad2bf06e883fe751f3bca55b3 (patch)
tree8206c703ade18f0107a3f75e6592286e1165817a /src
parentb46cd3a4920155cffbaecaf1ec8efe0ec245c531 (diff)
show possible variants of byte formats
Diffstat (limited to 'src')
-rw-r--r--src/options.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/options.rs b/src/options.rs
index 8439a0b..6d8f731 100644
--- a/src/options.rs
+++ b/src/options.rs
@@ -49,7 +49,7 @@ pub struct Args {
/// GiB - only gibibytes
/// MB - only megabytes
/// MiB - only mebibytes
- #[structopt(short = "f", long)]
+ #[structopt(short = "f", long, possible_values(&ByteFormat::variants()))]
pub format: Option<ByteFormat>,
/// Display apparent size instead of disk usage.