From b146fd26585f09da3009b4c6ad07829888f3d7fb Mon Sep 17 00:00:00 2001 From: Cutieguwu Date: Wed, 9 Apr 2025 12:48:55 -0400 Subject: [PATCH] Update main.rs --- miller/src/main.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/miller/src/main.rs b/miller/src/main.rs index cb11922..ee4ddbd 100644 --- a/miller/src/main.rs +++ b/miller/src/main.rs @@ -21,9 +21,7 @@ struct Args { // Behaviour is backwards. // ArgAction::SetFalse by default evaluates to true, // ArgAction::SetTrue by default evaluates to false. - #[arg(short, long, action=ArgAction::SetFalse)] - display_results: bool, - + /// Provide flag to disable tui and dump info via Debug pretty printing. #[arg(short, long, action=ArgAction::SetTrue)] no_tui: bool, } @@ -93,10 +91,8 @@ fn main() -> io::Result<()> { } } - if config.display_results { - // :#? for pretty-printing. - stats.iter().for_each(|team| println!("{:#?}", team)); - } + // :#? for pretty-printing. + stats.iter().for_each(|team| println!("{:#?}", team)); return Ok(()); }