Skip to content

Commit

Permalink
better clap arg for --color-resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
o2sh committed Oct 23, 2020
1 parent 11f86be commit 42a64dd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/onefetch/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,15 @@ impl Cli {
.help("Which image BACKEND to use."),
)
.arg(
Arg::with_name("image-colors")
.long("image-colors")
.value_name("NUM")
Arg::with_name("color-resolution")
.long("color-resolution")
.value_name("VALUE")
.takes_value(true)
.requires("image-backend")
.max_values(1)
.possible_values(&["16", "32", "64", "128", "256"])
.default_value("16")
.help("NUM of colors [16, 32, 64, 128, 256] to use in image backend."),
.help("VALUE of color resolution to use with SIXEL backend."),
)
.arg(
Arg::with_name("no-merge-commits")
Expand Down

0 comments on commit 42a64dd

Please sign in to comment.