Skip to content

Commit

Permalink
Remove unneeded references in Clap derive (#98)
Browse files Browse the repository at this point in the history
I think this failed to compile when we were still using StructOpt, but it works now.
  • Loading branch information
lunacookies committed Jan 5, 2022
1 parent dd9f765 commit da89256
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/pipes-rs/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ use std::time::Duration;
#[clap(name = "pipes-rs", version)]
pub struct Config {
/// what kind of terminal coloring to use
#[clap(short, long, possible_values = &["ansi", "rgb", "none"])]
#[clap(short, long, possible_values = ["ansi", "rgb", "none"])]
pub color_mode: Option<ColorMode>,

/// the color palette used assign colors to pipes
#[clap(long, possible_values = &["default", "darker", "pastel", "matrix"])]
#[clap(long, possible_values = ["default", "darker", "pastel", "matrix"])]
pub palette: Option<Palette>,

/// delay between frames in milliseconds
Expand All @@ -31,11 +31,11 @@ pub struct Config {
pub kinds: Option<KindSet>,

/// whether to use bold
#[clap(short, long, possible_values = &["true", "false"], value_name = "BOOL")]
#[clap(short, long, possible_values = ["true", "false"], value_name = "BOOL")]
pub bold: Option<bool>,

/// whether pipes should retain style after hitting the edge
#[clap(short, long, possible_values = &["true", "false"], value_name = "BOOL")]
#[clap(short, long, possible_values = ["true", "false"], value_name = "BOOL")]
pub inherit_style: Option<bool>,

/// number of pipes
Expand Down

0 comments on commit da89256

Please sign in to comment.