Skip to content

Commit

Permalink
Merge pull request #44 from 123marvin123/cli-oob-patch
Browse files Browse the repository at this point in the history
🔨 Fix -X and similar out of bounds error
  • Loading branch information
grtcdr authored Mar 16, 2021
2 parents e055139 + 6bb9edd commit 8614f85
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions macchina/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ pub struct Opt {
long = "hide",
possible_values = &theme::ReadoutKey::variants(),
case_insensitive = true,
help = "Hides the specified elements"
help = "Hides the specified elements",
min_values = 1
)]
hide: Option<Vec<theme::ReadoutKey>>,

Expand All @@ -138,7 +139,8 @@ pub struct Opt {
long = "show-only",
possible_values = &theme::ReadoutKey::variants(),
case_insensitive = true,
help = " Displays only the specified elements"
help = " Displays only the specified elements",
min_values = 1
)]
show_only: Option<Vec<theme::ReadoutKey>>,

Expand Down

0 comments on commit 8614f85

Please sign in to comment.