From f116b06c0c544c4f763f676e8230414110b4ad30 Mon Sep 17 00:00:00 2001 From: Love Billenius Date: Wed, 8 Jan 2025 16:28:57 +0100 Subject: [PATCH] Better time name --- src/cli.rs | 6 +++--- src/main.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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())