From 2e56a0d2e80416904712514da6dab788567a719b Mon Sep 17 00:00:00 2001 From: jakobst1n Date: Tue, 11 Jun 2024 22:57:42 +0200 Subject: Rename axis argument to silent, and invert it, so axis are enabled by default --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 35ca9f7..728f42a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -26,7 +26,7 @@ fn filter(opts: Opts) { x_values.push(i); let mut gb = graph::GraphBuilder::new(&x_values, &y_values, opts.width, opts.height); - gb.axis(opts.axis); + gb.axis(!opts.silent); gb.graph_type(opts.graph_type.clone()); if let Some(n) = opts.last_n { gb.keep_tail(n as usize); @@ -58,7 +58,7 @@ fn graph_file(opts: Opts) { } let mut gb = graph::GraphBuilder::new(&x_values, &y_values, opts.width, opts.height); - gb.axis(opts.axis); + gb.axis(!opts.silent); gb.graph_type(opts.graph_type); if let Some(n) = opts.last_n { gb.keep_tail(n as usize); -- cgit v1.2.3