diff --git a/src/cli.rs b/src/cli.rs index ef06a90..0a047f7 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -13,9 +13,9 @@ pub struct Cli { #[arg(value_enum, default_value_t = FormatOption::Plain)] pub command: FormatOption, - /// Show the time in the output - #[arg(long = "display-time", default_value_t = true)] - pub display_time: bool, + /// Don't show time in output + #[arg(long = "no-time")] + pub no_time: bool, /// Print currencies in a compact single line #[arg(long = "compact")] diff --git a/src/main.rs b/src/main.rs index c9c4dd6..0865845 100644 --- a/src/main.rs +++ b/src/main.rs @@ -94,7 +94,7 @@ async fn main() -> ExitCode { .map(|x| serde_json::to_value(x).expect("Failed to parse content as JSON value")) .collect::>(); - if !cli.display_time { + if cli.no_time { json_values .iter_mut() .filter_map(|json_value| json_value.as_object_mut())