mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-26 20:16:31 +00:00
Replace possible_values with value_parser
This commit is contained in:
1 parent
ccc4fb9ba9
commit
8a52261a50
1 file changed
+2
-2
+2
-2
@@ -102,7 +102,7 @@ fn run() -> Result<(), AnyhowError> {
|
|||||||
.long("color")
|
.long("color")
|
||||||
.num_args(1)
|
.num_args(1)
|
||||||
.value_name("WHEN")
|
.value_name("WHEN")
|
||||||
.possible_values(["always", "auto", "never"])
|
.value_parser(["always", "auto", "never"])
|
||||||
.default_value_if("plain", None, Some("never"))
|
.default_value_if("plain", None, Some("never"))
|
||||||
.default_value("always")
|
.default_value("always")
|
||||||
.help(
|
.help(
|
||||||
@@ -118,7 +118,7 @@ fn run() -> Result<(), AnyhowError> {
|
|||||||
.long("border")
|
.long("border")
|
||||||
.num_args(1)
|
.num_args(1)
|
||||||
.value_name("STYLE")
|
.value_name("STYLE")
|
||||||
.possible_values(["unicode", "ascii", "none"])
|
.value_parser(["unicode", "ascii", "none"])
|
||||||
.default_value_if("plain", None, Some("none"))
|
.default_value_if("plain", None, Some("none"))
|
||||||
.default_value("unicode")
|
.default_value("unicode")
|
||||||
.help(
|
.help(
|
||||||
|
|||||||
Reference in new issue
Block a user