example: enable case insensitivity

This commit is contained in:
ge 2024-12-24 08:59:22 +03:00
parent 7d81684acb
commit e7b2dae50d

View File

@ -70,11 +70,11 @@ fn main() {
eprintln('no value passed, see -help for info') eprintln('no value passed, see -help for info')
exit(2) exit(2)
} }
src := dataunits.from_string(flags.from) or { src := dataunits.from_string(flags.from, ci: true) or {
eprintln('invalid source unit: ${err}') eprintln('invalid source unit: ${err}')
exit(1) exit(1)
} }
dst := dataunits.from_string(flags.to) or { dst := dataunits.from_string(flags.to, ci: true) or {
eprintln('invalid destination unit: ${err}') eprintln('invalid destination unit: ${err}')
exit(1) exit(1)
} }