mirror of
https://github.com/lov3b/ecb-rates.git
synced 2025-02-22 18:00:11 +01:00
make input uppercase
This commit is contained in:
parent
d05a1433d3
commit
6c0639c6a3
@ -40,7 +40,13 @@ async fn main() -> ExitCode {
|
||||
};
|
||||
|
||||
if !cli.currencies.is_empty() {
|
||||
filter_currencies(&mut parsed, &cli.currencies);
|
||||
let currencies = cli
|
||||
.currencies
|
||||
.iter()
|
||||
.map(|x| x.to_uppercase())
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
filter_currencies(&mut parsed, ¤cies);
|
||||
}
|
||||
|
||||
let output = match cli.command {
|
||||
|
Loading…
x
Reference in New Issue
Block a user