Skip to content

Add flag to hide legend by default#6

Merged
sile merged 1 commit intomainfrom
hide-help
Apr 27, 2025
Merged

Add flag to hide legend by default#6
sile merged 1 commit intomainfrom
hide-help

Conversation

@sile
Copy link
Copy Markdown
Owner

@sile sile commented Apr 27, 2025

No description provided.

@sile sile requested a review from Copilot April 27, 2025 22:58
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new flag to hide the legend by default, allowing users to disable the legend through a command line flag or an environment variable.

  • Introduces the "hide-legend" flag in the argument parsing section in src/main.rs
  • Passes the new flag to the App constructor in src/app.rs to configure the LegendWidget

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/main.rs Adds a flag to hide the legend and updates the App call
src/app.rs Updates the App::new constructor to accept the hide_legend flag and configures the LegendWidget accordingly
Comments suppressed due to low confidence (1)

src/main.rs:48

  • Consider adding tests to verify that the 'hide-legend' flag correctly toggles the legend display, including behavior with the environment variable override.
let hide_legend = noargs::flag("hide-legend")

@sile sile merged commit 6bb0493 into main Apr 27, 2025
9 checks passed
@sile sile deleted the hide-help branch April 27, 2025 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants