summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2020-07-06 09:11:20 +0800
committerSebastian Thiel <sebastian.thiel@icloud.com>2020-07-06 09:11:20 +0800
commit4b59c36ca8c53e63dd74fc0b3179a4ed9de2f60d (patch)
tree9396cbb3e0ecfd77c8219c491c3eb6395580fad0
parent388a1347580df120cead11f98516ceb911373316 (diff)
Allow case-insensitivity with byte format variants
-rw-r--r--src/options.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/options.rs b/src/options.rs
index 6d8f731..992f823 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, possible_values(&ByteFormat::variants()))]
+ #[structopt(short = "f", long, case_insensitive = true, possible_values(&ByteFormat::variants()))]
pub format: Option<ByteFormat>,
/// Display apparent size instead of disk usage.