mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-26 20:16:34 +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")
|
||||
.num_args(1)
|
||||
.value_name("WHEN")
|
||||
.possible_values(["always", "auto", "never"])
|
||||
.value_parser(["always", "auto", "never"])
|
||||
.default_value_if("plain", None, Some("never"))
|
||||
.default_value("always")
|
||||
.help(
|
||||
@@ -118,7 +118,7 @@ fn run() -> Result<(), AnyhowError> {
|
||||
.long("border")
|
||||
.num_args(1)
|
||||
.value_name("STYLE")
|
||||
.possible_values(["unicode", "ascii", "none"])
|
||||
.value_parser(["unicode", "ascii", "none"])
|
||||
.default_value_if("plain", None, Some("none"))
|
||||
.default_value("unicode")
|
||||
.help(
|
||||
|
||||
Reference in new issue
Block a user