Skip to content

Commit

Permalink
style(format): apply code formatting to cli.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
CheerfulPianissimo committed Feb 28, 2024
1 parent 5706844 commit c3288ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wayshot/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ pub struct Cli {
/// Where to save the screenshot, "-" for stdout. Defaults to "$UNIX_TIMESTAMP-wayshot.$EXTENSION" unless --clipboard is present.
#[arg(value_name = "OUTPUT")]
pub file: Option<PathBuf>,

/// Copy image to clipboard along with [OUTPUT] or stdout
#[arg(long)]
pub clipboard: bool,

/// Log level to be used for printing to stderr
#[arg(long, default_value = "info", value_parser = clap::builder::PossibleValuesParser::new(["trace", "debug", "info", "warn", "error"]).map(|s| -> tracing::Level{ s.parse().wrap_err_with(|| format!("Failed to parse log level: {}", s)).unwrap()}))]
pub log_level: tracing::Level,
Expand Down

0 comments on commit c3288ea

Please sign in to comment.