Skip to content

Commit

Permalink
Revert to possible_values instead of value_parser
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Oct 8, 2022
1 parent edc9a9e commit 8588813
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub struct XWinOptions {
#[clap(
long,
env = "XWIN_ARCH",
value_parser = ["x86", "x86_64", "aarch", "aarch64"],
possible_values = &["x86", "x86_64", "aarch", "aarch64"],
use_value_delimiter = true,
default_value = "x86_64,aarch64",
hide = true,
Expand All @@ -34,7 +34,7 @@ pub struct XWinOptions {
#[clap(
long,
env = "XWIN_VARIANT",
value_parser = ["desktop", "onecore", /*"store",*/ "spectre"],
possible_values = &["desktop", "onecore", /*"store",*/ "spectre"],
use_value_delimiter = true,
default_value = "desktop",
hide = true,
Expand Down

0 comments on commit 8588813

Please sign in to comment.