Skip to content

Commit 42a64dd

Browse files
committed
better clap arg for --color-resolution
1 parent 11f86be commit 42a64dd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/onefetch/cli.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,15 @@ impl Cli {
143143
.help("Which image BACKEND to use."),
144144
)
145145
.arg(
146-
Arg::with_name("image-colors")
147-
.long("image-colors")
148-
.value_name("NUM")
146+
Arg::with_name("color-resolution")
147+
.long("color-resolution")
148+
.value_name("VALUE")
149149
.takes_value(true)
150+
.requires("image-backend")
150151
.max_values(1)
151152
.possible_values(&["16", "32", "64", "128", "256"])
152153
.default_value("16")
153-
.help("NUM of colors [16, 32, 64, 128, 256] to use in image backend."),
154+
.help("VALUE of color resolution to use with SIXEL backend."),
154155
)
155156
.arg(
156157
Arg::with_name("no-merge-commits")

0 commit comments

Comments
 (0)