diff options
| author | jakobst1n <jakob.stendahl@outlook.com> | 2024-06-11 22:57:42 +0200 |
|---|---|---|
| committer | jakobst1n <jakob.stendahl@outlook.com> | 2024-06-11 22:57:42 +0200 |
| commit | 2e56a0d2e80416904712514da6dab788567a719b (patch) | |
| tree | 32b2c81413730ed224214f8d443456326562d6bf /src/main.rs | |
| parent | d338982d6020e2b73a0912db048a53157ac7507e (diff) | |
| download | textgraph-2e56a0d2e80416904712514da6dab788567a719b.tar.gz textgraph-2e56a0d2e80416904712514da6dab788567a719b.zip | |
Rename axis argument to silent, and invert it, so axis are enabled by default
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
