diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-07-02 11:16:34 +0800 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-07-02 11:16:34 +0800 |
commit | fddc8cbcadb50a6ad2bf06e883fe751f3bca55b3 (patch) | |
tree | 8206c703ade18f0107a3f75e6592286e1165817a | |
parent | b46cd3a4920155cffbaecaf1ec8efe0ec245c531 (diff) |
show possible variants of byte formats
-rw-r--r-- | src/options.rs | 2 |
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. |