mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
57e5fc2b07
Fixes #32
18 lines
480 B
Rust
18 lines
480 B
Rust
#![cfg(feature = "unicode")]
|
|
|
|
#[test]
|
|
fn possible_values_ignore_case() {
|
|
let m = clap::App::new("pv")
|
|
.arg(
|
|
clap::Arg::new("option")
|
|
.short('o')
|
|
.long("--option")
|
|
.takes_value(true)
|
|
.possible_value("ä")
|
|
.ignore_case(true),
|
|
)
|
|
.try_get_matches_from(vec!["pv", "--option", "Ä"]);
|
|
|
|
assert!(m.is_ok());
|
|
assert!(m.unwrap().value_of("option").is_some());
|
|
}
|