summaryrefslogtreecommitdiffstats
path: root/src/options.rs
diff options
context:
space:
mode:
authorSebastian Thiel <sthiel@thoughtworks.com>2019-06-04 13:33:18 +0530
committerSebastian Thiel <sthiel@thoughtworks.com>2019-06-04 13:33:18 +0530
commitd13adea1958081e430703be84829b3c03c5f3e26 (patch)
tree189f561f4c9a6d4d3cb88d5daebde5f4d47307fd /src/options.rs
parenta5c8e37b970169913ab72ea691b89aeeeffad403 (diff)
Rename 'human*' formats to their non-prefixed counterpart
This makes more sense, and is more comfortable.
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 6d686c7..c3041bd 100644
--- a/src/options.rs
+++ b/src/options.rs
@@ -5,8 +5,8 @@ use structopt::{clap::arg_enum, StructOpt};
arg_enum! {
#[derive(PartialEq, Debug)]
pub enum ByteFormat {
- HumanMetric,
- HumanBinary,
+ Metric,
+ Binary,
Bytes
}
}
@@ -14,8 +14,8 @@ arg_enum! {
impl From<ByteFormat> for LibraryByteFormat {
fn from(input: ByteFormat) -> Self {
match input {
- ByteFormat::HumanMetric => LibraryByteFormat::Metric,
- ByteFormat::HumanBinary => LibraryByteFormat::Binary,
+ ByteFormat::Metric => LibraryByteFormat::Metric,
+ ByteFormat::Binary => LibraryByteFormat::Binary,
ByteFormat::Bytes => LibraryByteFormat::Bytes,
}
}
@@ -34,8 +34,8 @@ pub struct Args {
pub threads: Option<usize>,
/// The format with which to print byte counts.
- /// HumanMetric - uses 1000 as base (default)
- /// HumanBinary - uses 1024 as base
+ /// Metric - uses 1000 as base (default)
+ /// Binary - uses 1024 as base
/// Bytes - plain bytes without any formatting
#[structopt(short = "f", long = "format")]
pub format: Option<ByteFormat>,