mirror of
https://github.com/uutils/coreutils.git
synced 2025-12-23 08:47:37 +00:00
wc: accept shortcuts for stringly-enum arguments
This commit is contained in:
parent
a699bfd1fb
commit
91679fc747
2 changed files with 26 additions and 1 deletions
|
|
@ -29,6 +29,7 @@ use uucore::{
|
|||
error::{FromIo, UError, UResult},
|
||||
format_usage, help_about, help_usage,
|
||||
quoting_style::{escape_name, QuotingStyle},
|
||||
shortcut_value_parser::ShortcutValueParser,
|
||||
show,
|
||||
};
|
||||
|
||||
|
|
@ -439,7 +440,9 @@ pub fn uu_app() -> Command {
|
|||
.arg(
|
||||
Arg::new(options::TOTAL)
|
||||
.long(options::TOTAL)
|
||||
.value_parser(["auto", "always", "only", "never"])
|
||||
.value_parser(ShortcutValueParser::new([
|
||||
"auto", "always", "only", "never",
|
||||
]))
|
||||
.value_name("WHEN")
|
||||
.hide_possible_values(true)
|
||||
.help(concat!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue