1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-30 12:37:49 +00:00

ptx: fix an incorrect option name in option parsing

This commit is contained in:
Wisha Wa 2021-04-06 18:07:02 +00:00
parent 5fc007b295
commit 7b20c79bdd

View file

@ -169,9 +169,9 @@ fn get_config(matches: &clap::ArgMatches) -> Config {
.expect(err_msg) .expect(err_msg)
.to_string(); .to_string();
} }
if matches.is_present(options::IGNORE_CASE) { if matches.is_present(options::FLAG_TRUNCATION) {
config.trunc_str = matches config.trunc_str = matches
.value_of(options::IGNORE_CASE) .value_of(options::FLAG_TRUNCATION)
.expect(err_msg) .expect(err_msg)
.to_string(); .to_string();
} }