Skip to content

Commit

Permalink
fix(cli-c2g): Fix style CLI parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias committed Sep 1, 2024
1 parent e696611 commit b647e5e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/bin/c2g.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ impl Chess2GifCli {
)
.arg(
Arg::with_name("style")
.long("no-player-bars")
.takes_value(false)
.long("style")
.takes_value(true)
.default_value("full")
.overrides_with("plain")
.validator(|val| {
let mut invalid_vals = val.split(',').filter(|style| {
Expand Down Expand Up @@ -115,6 +116,15 @@ impl Chess2GifCli {
* player-bars: draw bars with player information like names and ELO.",
),
)
.arg(
Arg::with_name("plain")
.long("plain")
.takes_value(false)
.overrides_with("style")
.help(
"Use plain style.",
)
)
.arg(
Arg::with_name("dark")
.short("d")
Expand Down

0 comments on commit b647e5e

Please sign in to comment.