diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-07-06 09:11:20 +0800 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-07-06 09:11:20 +0800 |
commit | 4b59c36ca8c53e63dd74fc0b3179a4ed9de2f60d (patch) | |
tree | 9396cbb3e0ecfd77c8219c491c3eb6395580fad0 | |
parent | 388a1347580df120cead11f98516ceb911373316 (diff) |
Allow case-insensitivity with byte format variants
-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 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. |